richardpiazza/codequickkit
A Swift library for simplifying some everyday tasks.
📌 Features
Features in this project are largely grouped around how the apply-to or extend existing frameworks:
Swift Core Library
- Dependency Management:
DependencyCache offers a singleton approach to managing service and configuration dependencies throughout an application. The cache is configured by passing a DependencySupplier to the configure(with:) function. A dependency can be directly resolved from the cache using resolve<T>() throws -> T, or the Dependency property wrapper can be used to lazily reference as needed:
``swift @Dependency private var someService: SomeService ``
Foundation
- UserDefaults:
UserDefault is a property wrapper designed to interact with the UserDefaults storage.
``swift @UserDefault("counter", defaultValue: 0) var counter: Int ``
UIKit
- UIAlertController.ActivityAlertController:
This hack creates a alert dialog with a progress indicator and optional title/messaging strings.
SwiftUI
- ActivityAlertView
A SwiftUI workaround for using the ActivityAlertController. (UIKit Only)
🛠 Wanna Help?
Contributions are welcome and encouraged! See the Contribution Guide for more information.
Package Metadata
Repository: richardpiazza/codequickkit
Default branch: main
README: README.md