SwifterSwift collects small, self-contained Swift extensions for the standard library, Foundation, UIKit, AppKit, and related frameworks. Each extension lives in its own file.
Overview
SwifterSwift is a Swift Package Manager library of utility extensions added on top of Apple frameworks and the Swift standard library. Every extension is isolated in a single file with no cross-dependencies inside the project, so teams can import the whole package, select framework-specific products, or copy one file into an app.
Products cover areas such as the standard library, Foundation, Core Graphics, UIKit, AppKit, Core Location, MapKit, SpriteKit, CryptoKit, and HealthKit. A combined SwifterSwift product re-exports all areas. Where a framework is unavailable on a platform, the matching product builds empty.
Each extension includes documentation comments with examples, and reference material is published for package consumers. The standard library and Foundation modules also build on Linux, Android, WebAssembly, and Windows where noted, while UIKit-oriented code targets Apple platforms.
SwifterSwiftFoundation declares privacy manifest usage for UserDefaults. Apps that only need certain APIs can depend on individual products to avoid linking HealthKit when unused.
Key features
- One extension per file
- Per-framework Swift products
- DocC-documented APIs
- Copy single files into projects
- Swift Package Manager install
- Cross-platform Foundation/stdlib
- UIKit and AppKit helpers
- HealthKit optional product
Use cases
- Safer collection subscripts
- UIKit and AppKit shortcuts
- Foundation type helpers
- Partial package adoption
- Multi-platform Swift code