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 🧰
- Host: GitHub
- URL: https://github.com/thatfactory/toolbox
- Owner: thatfactory
- License: mit
- Created: 2024-04-18T10:42:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-09T12:59:04.000Z (6 months ago)
- Last Synced: 2025-12-10T13:04:08.370Z (6 months ago)
- Topics: helpers, swift, swiftui, tools, utilities
- Language: Swift
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`