Swift
为 iPhone 和 iPad 打造应用。
Swift is the language of Apple's platforms: iPhone, iPad, Mac, Apple Watch and Vision Pro. It is fast, safe by design and pleasant to read. This track starts from zero: constants and variables, optionals, decisions and loops, functions and closures, then structs, classes, enums and protocols. You will meet Swift 6's compile-time protection against data races, take a first look at async code and actors, and build your first SwiftUI screen. A last module turns it into a real app: lists and navigation, JSON from the network with Codable, and saving data with SwiftData.
Every lesson is short, practical and checked with quizzes, so you learn by doing.
- 课时
- 14
- 时长
- 2 小时
- 级别
- 初级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Write Swift with constants, variables and its strict, helpful type system
- Handle missing values safely with optionals
- Write functions with argument labels and process arrays with closures
- Choose between structs, classes and enums, and design with protocols
- Call async code and protect shared state with actors
- Build a first interactive SwiftUI screen
学习旅程
1 第 1 单元Swift basics
Constants and variables, optionals, decisions, loops, functions and closures.
0 / 52 第 2 单元Types and SwiftUI
Structs, classes, enums and protocols, async code and actors, and your first SwiftUI view.
0 / 53 第 3 单元Next: real apps
Lists and navigation, networking with Codable, and saving data on the device.
0 / 4