Skip to content

backslash-f/toolbox

Repository files navigation

swift-version swift-package-manager platforms build-status license

Toolbox 🧰

A collection of useful Swift tools.

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.

Integration

Xcode

Use Xcode's built-in support for SPM.

or...

Package.swift

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