Swiftpack.co - richardpiazza/CodeQuickKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by richardpiazza.
richardpiazza/CodeQuickKit 6.10.0
A Swift library simplifying some everyday tasks.
⭐️ 3
🕓 13 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/richardpiazza/CodeQuickKit.git", from: "6.10.0")

CodeQuickKit

A Swift library for simplifying some everyday tasks.

Twitter: @richardpiazza

💻 Installation

This software is distributed using Swift Package Manager. You can add it using Xcode or by listing it as a dependency in your Package.swift manifest:

let package = Package(
  ...
  dependencies: [
    .package(url: "https://github.com/richardpiazza/CodeQuickKit", .upToNextMajor(from: "7.0.0")
  ],
  ...
  targets: [
    .target(
      name: "MyPackage",
      dependencies: [
        "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<T>() throws -> T, or the Dependency property wrapper can be used to lazily reference as needed:
    @Dependency private var someService: SomeService
    

Foundation

  • UserDefaults: UserDefault is a property wrapper designed to interact with the UserDefaults storage.
    @UserDefault("counter", defaultValue: 0) var counter: Int
    

UIKit

SwiftUI

Nothing here... yet!

🛠 Wanna Help?

Contributions are welcome and encouraged! See the Contribution Guide for more information.

GitHub

link
Stars: 3
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

CodeQuickKit 6.10.0
13 weeks ago
  • Fixes some deprecations that arrived with Xcode 13
  • Deprecated several classes that are now implemented in other projects.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics