包与宏
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-architecture作者: 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-testing作者: 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.
-
Defaults作者: 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-dependencies作者: 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-paths作者: 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-perception作者: Point-Free
Offers observation tools for earlier versions of Swift, mimicking
@Observable
and providing compatibility with newer Swift observation features.