summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2024-11-13 08:27:46 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2024-11-13 08:27:46 +0100
commit545d44d84a3b61977ffbd55952e62a0f9bee8d9d (patch)
tree77928aa0aa5e422ac8b01fc0b08df44c18f212a5
parent403e6701f6a5b79f80082a9123fbcf84d0a7cdf8 (diff)
continuing designing the ios version using xcode im really struggling though
-rw-r--r--I2C/I2C.xcodeproj/project.pbxproj14
-rw-r--r--I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstatebin23380 -> 28421 bytes
-rw-r--r--I2C/I2C/ContentView.swift27
-rw-r--r--I2C/I2C/I2CApp.swift7
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 @@
398 DEVELOPMENT_ASSET_PATHS = "\"I2C/Preview Content\""; 398 DEVELOPMENT_ASSET_PATHS = "\"I2C/Preview Content\"";
399 ENABLE_PREVIEWS = YES; 399 ENABLE_PREVIEWS = YES;
400 GENERATE_INFOPLIST_FILE = YES; 400 GENERATE_INFOPLIST_FILE = YES;
401 INFOPLIST_KEY_CFBundleDisplayName = "I2C Controller";
402 INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
401 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 403 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
402 INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 404 INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
403 INFOPLIST_KEY_UILaunchScreen_Generation = YES; 405 INFOPLIST_KEY_UILaunchScreen_Generation = YES;
404 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 406 INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleDarkContent;
405 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 407 INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
408 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
406 LD_RUNPATH_SEARCH_PATHS = ( 409 LD_RUNPATH_SEARCH_PATHS = (
407 "$(inherited)", 410 "$(inherited)",
408 "@executable_path/Frameworks", 411 "@executable_path/Frameworks",
@@ -426,11 +429,14 @@
426 DEVELOPMENT_ASSET_PATHS = "\"I2C/Preview Content\""; 429 DEVELOPMENT_ASSET_PATHS = "\"I2C/Preview Content\"";
427 ENABLE_PREVIEWS = YES; 430 ENABLE_PREVIEWS = YES;
428 GENERATE_INFOPLIST_FILE = YES; 431 GENERATE_INFOPLIST_FILE = YES;
432 INFOPLIST_KEY_CFBundleDisplayName = "I2C Controller";
433 INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
429 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 434 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
430 INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 435 INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
431 INFOPLIST_KEY_UILaunchScreen_Generation = YES; 436 INFOPLIST_KEY_UILaunchScreen_Generation = YES;
432 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 437 INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleDarkContent;
433 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 438 INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
439 INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
434 LD_RUNPATH_SEARCH_PATHS = ( 440 LD_RUNPATH_SEARCH_PATHS = (
435 "$(inherited)", 441 "$(inherited)",
436 "@executable_path/Frameworks", 442 "@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
--- a/I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstate
+++ b/I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstate
Binary files 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 @@
1import SwiftUI 1import SwiftUI
2 2
3struct ContentView: View { 3struct ContentView: View {
4 var body: some View { 4 var header: some View {
5 HStack { 5 VStack {
6 6 Text("Hello world!")
7 }
8
9 }
10 var body: some View {
11 VStack {
12 Circle()
13 .fill(.blue)
14 .frame(width: 100, height: 100)
15 .padding()
16 header
7 Button("VOICE RECOGNITION"){ 17 Button("VOICE RECOGNITION"){
8 18
9 } 19 }
10 Button("CPU UPTIME"){ 20 Button("CPU UPTIME"){
11 21
12 } 22 }
13 Button("CPU INFO"){ 23 Button("CPU INFO"){
14 24
15 }
16
17 } 25 }
18 } 26 }
19 } 27 }
28}
20 29
21 30
22 31
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 @@
1//
2// I2CApp.swift
3// I2C
4//
5// Created by nsrddyn on 09/11/2024.
6//
7
8import SwiftUI 1import SwiftUI
9 2
10@main 3@main