Stage 1 · Lesson 10 of 10
Swift Package Manager
is built into . It is the standard way to add code written by others to an iOS app. In Xcode you choose Add Package Dependencies, paste a repository URL and pick a version rule.
For example, "up to the next major version" from 2.1.0 accepts 2.1.0 and anything below 3.0.0. Xcode records the exact versions it picked in Package.resolved, which you commit. Apple's own frameworks cover a lot, including networking, , charts and storage, so check them before adding a package.
Common trappulling in a large library for something already does, then being blocked when it lags behind a new Xcode.
A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock
Resources for this stage
Start with
- CourseFree100 Days of SwiftUI
Paul Hudson (Hacking with Swift) · Beginner
Days 1 to 15 teach Swift, with a checkpoint exercise every other day