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 thanBlocks
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.
import Blocks
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")
])
]