https://github.com/richardpiazza/codequickkit
A Swift library simplifying some everyday tasks.
https://github.com/richardpiazza/codequickkit
extensions formatters swift swift-extension uikit
Last synced: about 1 month ago
JSON representation
A Swift library simplifying some everyday tasks.
- Host: GitHub
- URL: https://github.com/richardpiazza/codequickkit
- Owner: richardpiazza
- License: mit
- Created: 2014-07-26T08:47:00.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T20:31:59.000Z (over 1 year ago)
- Last Synced: 2025-08-22T13:52:25.543Z (10 months ago)
- Topics: extensions, formatters, swift, swift-extension, uikit
- Language: Swift
- Homepage:
- Size: 715 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeQuickKit
A Swift library for simplifying some everyday tasks.
[](https://swiftpackageindex.com/richardpiazza/CodeQuickKit)
[](https://swiftpackageindex.com/richardpiazza/CodeQuickKit)
## 📌 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() 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](CONTRIBUTING.md) for more information.