Skip to content

Commit 5a7d4ab

Browse files
authored
fix
1 parent 3482dd9 commit 5a7d4ab

5 files changed

Lines changed: 42 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
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 \

SimpleCalc/ContentView.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
}

SimpleCalc/Info.plist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>

SimpleCalc/SimpleCalcApp.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import SwiftUI
2+
3+
@main
4+
struct SimpleCalcApp: App {
5+
var body: some Scene {
6+
WindowGroup {
7+
ContentView()
8+
}
9+
}
10+
}

project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)