SwiftToolLibrary是一款加速swift开发的工具包(iOSApp);
Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
Xcode 11+ is required to build SwiftToolLibrary using Swift Package Manager.
To integrate SnapKit into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift
:
dependencies: [
.package(url: "https://github.com/CoderZCC/SwiftToolLibrary.git", .upToNextMajor(from: "1.0.0"))
]
import SwiftToolLibrary
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let arr = ["1", "2", "3"]
print(arr[safe: 1000] ?? "")
}
}
SwiftToolLibrary is released under the MIT license. See LICENSE for details.
link |
Stars: 0 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics