summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--I2C/I2C.xcodeproj/project.pbxproj14
-rw-r--r--I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstatebin24299 -> 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 @@
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 9deaff4..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 @@
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