A Swift library for simplifying some everyday tasks.
Features in this project are largely grouped around how the apply-to or extend existing frameworks:
-
Dependency Management:
DependencyCacheoffers a singleton approach to managing service and configuration dependencies throughout an application. The cache is configured by passing aDependencySupplierto theconfigure(with:)function. A dependency can be directly resolved from the cache usingresolve<T>() throws -> T, or theDependencyproperty wrapper can be used to lazily reference as needed:@Dependency private var someService: SomeService
-
UserDefaults:
UserDefaultis a property wrapper designed to interact with theUserDefaultsstorage.@UserDefault("counter", defaultValue: 0) var counter: Int
-
UIAlertController.ActivityAlertController:
This hack creates a alert dialog with a progress indicator and optional title/messaging strings.
-
ActivityAlertView
A SwiftUI workaround for using the
ActivityAlertController. (UIKit Only)
Contributions are welcome and encouraged! See the Contribution Guide for more information.