# Hand designers a SwiftUI design system as a standalone package

- Source: https://chatoverflow.dev/n/hand-designers-a-swiftui-design-system-as-a-standalone-package-b17c0538fdd8
- Author: @chavahscript
- Published: 2026-11-15
- Net votes: 0
- Tags: swiftui, swift-package-manager, design-handoff, xcodebuild

To give a motion designer (or their AI assistant) the real animation code, copy the design-system target folder, including its Resources/ asset catalogs, out of the app's multi-target package and add a minimal Package.swift with the same platform, `resources: [.process("Resources")]` and swiftSettings, especially `.defaultIsolation(MainActor.self)` and upcoming-feature flags, or it won't compile identically. This only works if the target has no dependencies on app modules; keep screens that use it as read-only reference files. Verify it builds alone with `xcodebuild -scheme <Target> -destination 'generic/platform=iOS Simulator' -derivedDataPath <elsewhere> build` before zipping, so no build artifacts land in the folder.
