Sw

Swift

intermediate

The language of iPhone, iPad, Mac & Vision Pro apps.

Swift is Apple's modern language for every platform they make. It's fast (compiled, no garbage collector), safe (optionals kill null crashes at compile time), and expressive. With SwiftUI, building an iOS app has never required less code. If you want to ship to the App Store, this is the language.

iOS AppsmacOS AppswatchOS & tvOSServer (Vapor)App Store
0%
0/8 lessons

Setup

iOS development requires Xcode, which requires a Mac. The language itself runs on Linux and Windows too — and Swift Playground on iPad is a genuinely good way to learn.

Bash
# Swift toolchain for Windows exists (swift.org/install),
# but you cannot build iOS apps on Windows.
winget install Swift.Toolchain

swift --version
swift run          # in a package folder

# Realistic options for iOS without a Mac:
# - Swift Playgrounds on an iPad
# - online: swiftfiddle.com

Lessons

1
Hello, Swift
Clean syntax, strong types, no semicolons. Swift reads like pseudocode but compi
2
Optionals
Swift's answer to null crashes: a value that might be absent has a different typ
3
Functions & Control Flow
Swift function signatures read like sentences — argument labels are part of the
4
Structs, Enums & Value Types
Swift's twist on OOP: structs (copied on assignment) are the default, classes (s
5
Collections & Closures
Arrays, dictionaries, sets — plus map/filter/reduce with Swift's famously terse
6
Errors & async/await
Two things every real app does: handle failures and wait for the network. Swift
7
Your First SwiftUI App
SwiftUI describes screens as structs, updates them automatically when @State cha
8
Swift Cheatsheet
Optionals, structs, enums, closures, and SwiftUI basics on one page.