Packages with Macros
Macros are new in Swift 5.9 and transform your source code when you compile it, letting you avoid writing repetitive code. Read more about creating macros or check out these packages that include macro targets.
-
swift-composable-architectureby Point-Free
The Composable Architecture is a library for building applications with state management, composition, side effects, and testing in mind. It can be used with SwiftUI, UIKit, and more.
-
swift-testingby The Swift Programming Language
Enhances Swift code testing with expressive APIs, custom behaviors, flexible organization, scalable execution, and cross-platform support. Compatible with XCTest for easy migration.
-
Defaultsby Sindre Sorhus
Defaults is a type-safe wrapper around UserDefaults and supports Codable, NSSecureCoding, change observation, and SwiftUI integration. It offers iCloud synchronization and custom serialization.
-
swift-dependenciesby Point-Free
A dependency management library for controlling and overriding dependencies in Swift applications. Helps with testing, SwiftUI previews, and compile-time performance.
-
swift-case-pathsby Point-Free
CasePaths extends the functionality of key paths to enum cases, allowing for the extraction, modification, and testing of associated values in enums.
-
swift-perceptionby Point-Free
Offers observation tools for earlier versions of Swift, mimicking
@Observable
and providing compatibility with newer Swift observation features.