From 545d44d84a3b61977ffbd55952e62a0f9bee8d9d Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Wed, 13 Nov 2024 08:27:46 +0100 Subject: continuing designing the ios version using xcode im really struggling though --- I2C/I2C.xcodeproj/project.pbxproj | 14 ++++++++--- .../UserInterfaceState.xcuserstate | Bin 23380 -> 28421 bytes I2C/I2C/ContentView.swift | 27 ++++++++++++++------- I2C/I2C/I2CApp.swift | 7 ------ 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/I2C/I2C.xcodeproj/project.pbxproj b/I2C/I2C.xcodeproj/project.pbxproj index 4271c40..cbc3848 100644 --- a/I2C/I2C.xcodeproj/project.pbxproj +++ b/I2C/I2C.xcodeproj/project.pbxproj @@ -398,11 +398,14 @@ DEVELOPMENT_ASSET_PATHS = "\"I2C/Preview Content\""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_CFBundleDisplayName = "I2C Controller"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleDarkContent; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -426,11 +429,14 @@ DEVELOPMENT_ASSET_PATHS = "\"I2C/Preview Content\""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_CFBundleDisplayName = "I2C Controller"; + INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleDarkContent; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstate b/I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstate index e39916b..78be191 100644 Binary files a/I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstate and b/I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/I2C/I2C/ContentView.swift b/I2C/I2C/ContentView.swift index c9b93b8..e21bcb2 100644 --- a/I2C/I2C/ContentView.swift +++ b/I2C/I2C/ContentView.swift @@ -1,22 +1,31 @@ import SwiftUI struct ContentView: View { - var body: some View { - HStack { - + var header: some View { + VStack { + Text("Hello world!") + } + + } + var body: some View { + VStack { + Circle() + .fill(.blue) + .frame(width: 100, height: 100) + .padding() + header Button("VOICE RECOGNITION"){ } Button("CPU UPTIME"){ } - Button("CPU INFO"){ - - } - + Button("CPU INFO"){ + } - } - } + } + } +} diff --git a/I2C/I2C/I2CApp.swift b/I2C/I2C/I2CApp.swift index f8f6220..b70050f 100644 --- a/I2C/I2C/I2CApp.swift +++ b/I2C/I2C/I2CApp.swift @@ -1,10 +1,3 @@ -// -// I2CApp.swift -// I2C -// -// Created by nsrddyn on 09/11/2024. -// - import SwiftUI @main -- cgit v1.2.3-70-g09d2