thecodex.expert · The Codex Family of Knowledge
Free Course

Learn Swift

Three tracks from first Optional to actors and ARC — Apple's language for iOS, macOS, and server-side development. Clean, safe, fast. Free forever. No account.

🕐 ~12 hours3 tracksSwift 5.10+No prior iOS experience needed

📢 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
🕐 ~4 hours5 lessons + quiz
Start Foundations →
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
🕐 ~4 hours5 lessons + quiz
Start Practitioner →
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
🕐 ~4 hours5 lessons + quiz
Start Advanced →

Practice environment

Run Swift in your browser — no installation needed.

Swift Online Playground →