File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - name : Install XcodeGen
1111 run : brew install xcodegen
1212
13- - name : Generate Project & Build
13+ - name : Generate and Build
1414 run : |
1515 xcodegen generate
1616 xcodebuild archive \
Original file line number Diff line number Diff line change 1+ import SwiftUI
2+
3+ struct ContentView : View {
4+ @State private var display = " 0 "
5+
6+ var body : some View {
7+ VStack {
8+ Text ( display)
9+ . font ( . system( size: 70 ) )
10+ . padding ( )
11+ Button ( " Reset " ) {
12+ display = " 0 "
13+ }
14+ . font ( . title)
15+ . padding ( )
16+ . background ( Color . red)
17+ . foregroundColor ( . white)
18+ . cornerRadius ( 10 )
19+ }
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+ <plist version =" 1.0" >
4+ <dict >
5+ <key >UILaunchScreen </key >
6+ <dict />
7+ </dict >
8+ </plist >
Original file line number Diff line number Diff line change 1+ import SwiftUI
2+
3+ @main
4+ struct SimpleCalcApp : App {
5+ var body : some Scene {
6+ WindowGroup {
7+ ContentView ( )
8+ }
9+ }
10+ }
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ targets:
44 type : application
55 platform : iOS
66 deploymentTarget : " 15.0"
7- sources : [SimpleCalc]
7+ sources :
8+ - SimpleCalc
89 info :
910 path : SimpleCalc/Info.plist
1011 properties :
1112 CFBundlePackageType : APPL
1213 CFBundleShortVersionString : " 1.0"
1314 CFBundleVersion : " 1"
14- UILaunchStoryboardName : LaunchScreen
You can’t perform that action at this time.
0 commit comments