A collection of useful Swift tools.
Tool | Description |
---|---|
CodableError |
Defines a Codable wrapper for Apple's Error . |
loadJSONFromFile(filename:type:) |
Loads and decodes .json files from the main bundle or (Development Assets) into a specified Decodable type. |
Use Xcode's built-in support for SPM.
or...
In your Package.swift
, add Toolbox
as a dependency:
dependencies: [
.package(url: "https://github.com/backslash-f/toolbox", from: "0.0.1")
]
Associate the dependency with your target:
targets: [
.target(
name: "YourAppName",
dependencies: [
.product(name: "Toolbox", package: "toolbox")
]
)
]
Run: swift build