summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2024-11-10 17:44:50 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2024-11-10 17:44:50 +0100
commit13b23f617c8016b279cade5b5e0cf17a04b6471a (patch)
tree0a637e50df1cc10d196b104308ea8ea5cfcf6ea2
parent68f35521422c21348d2fc7fd43481da7178347b5 (diff)
working on the general design of the ios application, still no clue on how swiftui works though lol
-rw-r--r--I2C/I2C.xcodeproj/project.xcworkspace/xcuserdata/nsrddyn.xcuserdatad/UserInterfaceState.xcuserstatebin13094 -> 22152 bytes
-rw-r--r--I2C/I2C/ContentView.swift29
2 files changed, 15 insertions, 14 deletions
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 2cf6362..8bdd966 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 729d80b..c9b93b8 100644
--- a/I2C/I2C/ContentView.swift
+++ b/I2C/I2C/ContentView.swift
@@ -1,23 +1,24 @@
1//
2// ContentView.swift
3// I2C
4//
5// Created by nsrddyn on 09/11/2024.
6//
7
8import SwiftUI 1import SwiftUI
9 2
10struct ContentView: View { 3struct ContentView: View {
11 var body: some View { 4 var body: some View {
12 VStack { 5 HStack {
13 Image(systemName: "globe") 6
14 .imageScale(.large) 7 Button("VOICE RECOGNITION"){
15 .foregroundStyle(.tint) 8
16 Text("Hello, world!") 9 }
10 Button("CPU UPTIME"){
11
12 }
13 Button("CPU INFO"){
14
15 }
16
17 }
17 } 18 }
18 .padding()
19 } 19 }
20} 20
21
21 22
22#Preview { 23#Preview {
23 ContentView() 24 ContentView()