A Swift library for simplifying some everyday tasks.
This software is distributed using Swift Package Manager.
You can add it using Xcode or by listing it as a dependency in your
let package = Package( ... dependencies: [ .package(url: "https://github.com/richardpiazza/CodeQuickKit", .upToNextMajor(from: "7.0.0") ], ... targets: [ .target( name: "MyPackage", dependencies: [ "CodeQuickKit" ] ) ] )
Features in this project are largely grouped around how the apply-to or extend existing frameworks:
DependencyCacheoffers a singleton approach to managing service and configuration dependencies throughout an application. The cache is configured by passing a
configure(with:)function. A dependency can be directly resolved from the cache using
resolve<T>() throws -> T, or the
Dependencyproperty wrapper can be used to lazily reference as needed:
@Dependency private var someService: SomeService
UserDefaultis a property wrapper designed to interact with the
@UserDefault("counter", defaultValue: 0) var counter: Int
Nothing here... yet!
Contributions are welcome and encouraged! See the Contribution Guide for more information.
|Last commit: 3 weeks ago|