An open API service indexing awesome lists of open source software.

https://github.com/thatfactory/toolbox

A collection of useful Swift tools 🧰
https://github.com/thatfactory/toolbox

helpers swift swiftui tools utilities

Last synced: about 2 months ago
JSON representation

A collection of useful Swift tools 🧰

Awesome Lists containing this project

README

          


Swift
Xcode
SPM
Platforms
License
CI
Release

# Toolbox 🧰
A collection of useful Swift tools.

## Tools
Tool | Description
--- | ---
`CodableError` | Defines a `Codable` wrapper for Apple's `Error`.
`jsonDataFromFile(_:)` | Loads the contents of a JSON resource bundled with the app or test target. Returns a `Data` instance containing the raw bytes of the JSON file.

## Integration
### Xcode
Use Xcode's [built-in support for SPM](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).

*or...*

### Package.swift
In your `Package.swift`, add `Toolbox` as a dependency:

```swift
dependencies: [
.package(
url: "https://github.com/thatfactory/toolbox",
from: "0.1.0"
)
]
```

Associate the dependency with your target:

```swift
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(
name: "Toolbox",
package: "toolbox"
)
]
)
]
```

Run: `swift build`