Skip to content

dirtyhenry/swift-blocks

Repository files navigation

swift-blocks logo

🧱 Blocks

Build macOS CI state badge Swift versions compatibility badge Platforms compatibility badge

A collection of my Swift building blocks.

This repository contains:

  • Blocks: a dependency-free Swift package with some utilities to deal with networking, API management, web protocols, etc.;

And the following examples executables/apps:

  • BlocksCLI: a command-line interface for basic proof-of-concepts;
  • BlocksApp: a basic App with no other dependencies than Blocks and Apple-provided 1st-party frameworks.

Tip

🏘️ For a similar package that builds on a curated set of dependencies (such as TCA, Yams, or Swift Argument Parser), watch out my Hoods package.

Usage

import Blocks

Installation

Swift Package Manager is recommended:

dependencies: [
    .package(
        url: "https://github.com/dirtyhenry/swift-blocks",
        from: "0.4.0"
    ),
]

Next, add Blocks as a dependency of your test target:

targets: [
    .target(name: "MyTarget", dependencies: [
        .product(name: "Blocks", package: "swift-blocks")
    ])
]

License

MIT