使 Swift 开发 - Apple
39
使 Swift 开发 Swift Coding Club
Transcript of 使 Swift 开发 - Apple
DiS Coding Club_FINAL-zh_CN_20200826_S1.pages Swift Coding
Club
Swift Coding Club app Swift (Apple ) app
Swift Coding Club app
| 10
iPad Swift Playgrounds Swift >
Swift | 14
Mac Xcode app Swift >
Swift Coding Club
2
Swift Coding Club Apple iPad Mac app
1. Swift Swift Mac Xcode SwiftSwift Apple app iOSmacOSApple tvOSwatchOS app Swift
3
Xcode Xcode app (UI) app App Store Xcode app
Swift Swift iOS app app app app app
Xcode > Swift >
•
•
2.
• Mac macOS Catalina Mac
• Xcode 11Apple Mac app Mac app iOS app app
• Swift Apple Swift
• Keynote Mac app app
Apple Apple
4
4. Swift Coding Club
•
•
Swift Coding Club
•
• T Swift Coding Club T app Swift Coding Club T T
Swift Coding Club T
Swift Coding Club
app
app Swift
app app
app 12
6
1. Swift Swift Apple app app iPadMac Apple TVApple Watch appSwift
Swift swift.org
2. Xcode Swift Xcode app Xcode appXcode app ( Interface Builder)
Xcode Xcode
Swift Xcode playground Xcode playground Swift
Swift
Swift >
>
Xcode “Xcode”>“Preferences”
[x]
app print() app
+ R + / + I + + 0 ++0
Swift App Xcode app
8
3. app app playground app Xcode Swift
app
App
1PhotoFrame App
2QuestionBot App
3ColorMix App
4ElementQuiz App
5App
4. App Xcode app app app app app
app app App app app app app app
10
5. watchOS app app
Run My Code
2.
•
1.
app app
Swift Swift Coding Club
4.
Swift Swift Coding Club
Swift Coding Club
1PhotoFrame App
2QuestionBot App
3ColorMix App
4ElementQuiz App
5App
PhotoFrame App 1
app UI () app UI app app XcodeInterface Builder Simulator app
1-7 Xcode playground • Playground • • •
8-9 playground
10-12 Xcode Interface Builder PhotoFrame app
PhotoFrame App 1
PhotoFrame App 17
( 15 ) ( 16 )
( 20 )
( 18-19 )
1 2-3 4-5
PhotoFrame App 18
PhotoFrame App 19
6-7 8-9
playground
( 23-24 )
PhotoFrame App
Xcode Interface Builder app
app
PhotoFrame app ( 47-73 )
10-12
QuestionBot App 2
app Siri app QuestionBot app app app app
1-10 Xcode playground • • • • •
11-12 BoogieBot playground
13-14 Xcode QuestionBot app “”
QuestionBot App 21
( 109 ) ( 110 ) ( 111 )
( 115-116 )
( 112-114 )
1-2 3-4 5-6
QuestionBot App 22
BoogieBot playground ( 134 )
11-12
( 116 )
playground ( 127-129 )
( 117 )
7-8 9-10
QuestionBot app
QuestionBot app “”
QuestionBot app ( 136-148 )
13-14
ColorMix App 3
iPhone (UI) UI app UI ColorMix app UI Swift ColorMix app
1-6 Xcode playground • • •
7-8
9-12 UI ColorMix app
ColorMix App 26
( 182 )
playground ( 194-196 )
( 189-190 )
playground ( 201-203 )
( 183 ) ( 184-185 ) ( 186 ) ( 187-188 )
playground ( 197-200 )
1-2 3-4 5-6
ColorMix App 27
playground ( 213-214 )
app
ColorMix app ( 296-339 )
7-8 9-12
ElementQuiz App 4
app ElementQuiz app app MemeMaker app ElementQuiz app
1-4 ElementQuiz app
5-6
ElementQuiz App 30
app
ElementQuiz app 1-3 ( 394-408 )
Enum Switch
1-4 5-6
ElementQuiz App 32
MemeMaker App
app
MemeMaker app ( 377-392 )
7-12
ElementQuiz App 33
App
“”
app
app ( 361-376 )
7-12
ElementQuiz App B
ElementQuiz app
app
ElementQuiz app 4-10 ( 409-459 )
7-12
App 35
App
app app Keynote app app app app
App app
app
app UI Keynote app
app iOS app (UI)
App
app
10-11 12
Swift Coding Club app Swift (Apple ) app
Swift Coding Club app
| 10
iPad Swift Playgrounds Swift >
Swift | 14
Mac Xcode app Swift >
Swift Coding Club
2
Swift Coding Club Apple iPad Mac app
1. Swift Swift Mac Xcode SwiftSwift Apple app iOSmacOSApple tvOSwatchOS app Swift
3
Xcode Xcode app (UI) app App Store Xcode app
Swift Swift iOS app app app app app
Xcode > Swift >
•
•
2.
• Mac macOS Catalina Mac
• Xcode 11Apple Mac app Mac app iOS app app
• Swift Apple Swift
• Keynote Mac app app
Apple Apple
4
4. Swift Coding Club
•
•
Swift Coding Club
•
• T Swift Coding Club T app Swift Coding Club T T
Swift Coding Club T
Swift Coding Club
app
app Swift
app app
app 12
6
1. Swift Swift Apple app app iPadMac Apple TVApple Watch appSwift
Swift swift.org
2. Xcode Swift Xcode app Xcode appXcode app ( Interface Builder)
Xcode Xcode
Swift Xcode playground Xcode playground Swift
Swift
Swift >
>
Xcode “Xcode”>“Preferences”
[x]
app print() app
+ R + / + I + + 0 ++0
Swift App Xcode app
8
3. app app playground app Xcode Swift
app
App
1PhotoFrame App
2QuestionBot App
3ColorMix App
4ElementQuiz App
5App
4. App Xcode app app app app app
app app App app app app app app
10
5. watchOS app app
Run My Code
2.
•
1.
app app
Swift Swift Coding Club
4.
Swift Swift Coding Club
Swift Coding Club
1PhotoFrame App
2QuestionBot App
3ColorMix App
4ElementQuiz App
5App
PhotoFrame App 1
app UI () app UI app app XcodeInterface Builder Simulator app
1-7 Xcode playground • Playground • • •
8-9 playground
10-12 Xcode Interface Builder PhotoFrame app
PhotoFrame App 1
PhotoFrame App 17
( 15 ) ( 16 )
( 20 )
( 18-19 )
1 2-3 4-5
PhotoFrame App 18
PhotoFrame App 19
6-7 8-9
playground
( 23-24 )
PhotoFrame App
Xcode Interface Builder app
app
PhotoFrame app ( 47-73 )
10-12
QuestionBot App 2
app Siri app QuestionBot app app app app
1-10 Xcode playground • • • • •
11-12 BoogieBot playground
13-14 Xcode QuestionBot app “”
QuestionBot App 21
( 109 ) ( 110 ) ( 111 )
( 115-116 )
( 112-114 )
1-2 3-4 5-6
QuestionBot App 22
BoogieBot playground ( 134 )
11-12
( 116 )
playground ( 127-129 )
( 117 )
7-8 9-10
QuestionBot app
QuestionBot app “”
QuestionBot app ( 136-148 )
13-14
ColorMix App 3
iPhone (UI) UI app UI ColorMix app UI Swift ColorMix app
1-6 Xcode playground • • •
7-8
9-12 UI ColorMix app
ColorMix App 26
( 182 )
playground ( 194-196 )
( 189-190 )
playground ( 201-203 )
( 183 ) ( 184-185 ) ( 186 ) ( 187-188 )
playground ( 197-200 )
1-2 3-4 5-6
ColorMix App 27
playground ( 213-214 )
app
ColorMix app ( 296-339 )
7-8 9-12
ElementQuiz App 4
app ElementQuiz app app MemeMaker app ElementQuiz app
1-4 ElementQuiz app
5-6
ElementQuiz App 30
app
ElementQuiz app 1-3 ( 394-408 )
Enum Switch
1-4 5-6
ElementQuiz App 32
MemeMaker App
app
MemeMaker app ( 377-392 )
7-12
ElementQuiz App 33
App
“”
app
app ( 361-376 )
7-12
ElementQuiz App B
ElementQuiz app
app
ElementQuiz app 4-10 ( 409-459 )
7-12
App 35
App
app app Keynote app app app app
App app
app
app UI Keynote app
app iOS app (UI)
App
app
10-11 12