📢 Swift requires macOS for full iOS development. For learning the language itself, Swift Playgrounds on iPad, the Swift Playgrounds app on Mac, or the online playground at swift.org/swift-online/ work well. Xcode is required for actual iOS/macOS app building.
Track 1
Foundations
Variables, optionals, structs, and closures
- Variables, constants, and type inference
- Optionals: if let, guard let, and ??
- Structs, classes, and value vs reference
- Closures and trailing closure syntax
- Enums with associated values
Track 2
Practitioner
Protocols, generics, error handling, and collections
- Protocols and protocol extensions
- Generics and where clauses
- Error handling: throws, try, do-catch
- Collections: Array, Dictionary, Set
- Codable: JSON encoding and decoding
Track 3
Advanced
Concurrency, actors, ARC, and SwiftUI basics
- async/await and Task
- Actors and @MainActor
- ARC: retain cycles and weak references
- Property wrappers and @State
- SwiftUI: declarative UI with View protocol