目录
目录README.md

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

  • UIAlertController.ActivityAlertController:This hack creates a alert dialog with a progress indicator and optional title/messaging strings.

SwiftUI

  • ActivityAlertViewA SwiftUI workaround for using the ActivityAlertController. (UIKit Only)

🛠 Wanna Help?

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

关于
851.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号