T1, T2, T3 — the same code layers at every size, and who owns what once there's more than one module.
Project Shape
T1, T2, T3 — the same layers, a different boundary
The layers of code are identical at every size; what changes is whether the compiler can enforce the boundary between them, or whether it's left to good intentions.
T1
T2 (default)
T3
Shape
one .xcodeproj, one app target
the same, plus local Swift packages under Packages/
an .xcworkspace over several projects
Boundaries
none — everything can see everything
one per package; using something from another means marking it public on purpose
one per framework, each buildable on its own
Adding a module
n/a — there's only the one target
/add-module scaffolds the package and regenerates the project
/add-module scaffolds the framework target and regenerates the workspace
Files describing the build
one project.yml
plus a Package.swift per package
one per project, plus a generated workspace file
Where dependency versions are pinned
Package.resolved, inside App.xcodeproj/…/swiftpm/
moves to xcshareddata/swiftpm/
Good for
prototypes, fewer than ~10 screens
one app you intend to ship, any size
two apps sharing a core, or a published framework
Dependencies only ever point one direction — app → shared modules → the small building-block modules. Never a framework depending on the app, and never one app on another. When a shared module needs behaviour that differs per app, it takes that in as a protocol, handed to it at launch. /add-module refuses to create a loop, where two modules each need the other.
Adding a package is a text edit plus a regenerate — never hand-surgery on the Xcode project file. Pulling shared code out of an app that never had boundaries is the expensive path: you go through every type the new consumer touches and decide what becomes public, and untangle Bundle.main lookups that compile happily and return nothing at runtime. A second app is a weekend's work if you started at T3, a quarter if you're retrofitting.
Who owns what, from T2 onward
Each module with UI owns its own translations. Text lookup happens inside whichever bundle owns the screen, so every module with visible text keeps its own text files and its own bundle-aware way of reading them — Bundle.module in a package, Bundle(for:) in a framework, and never Bundle.main.
Colours and fonts are a shared base plus a per-app override, not a single file everyone edits.
The Info.plist, entitlements, image catalog, app icon and signing belong to the app target only — never to a shared module.
Check your understanding
1. Why is T2 (local Swift packages) the recommended default project topology?
Correct.Not quite.
T1 works with no real boundaries; retrofitting them onto an app that's grown without any is a much bigger job than starting with them.