https://github.com/dirtyhenry/swift-blocks
🧱 A collection of my Swift building blocks.
https://github.com/dirtyhenry/swift-blocks
swift swift-package
Last synced: 3 months ago
JSON representation
🧱 A collection of my Swift building blocks.
- Host: GitHub
- URL: https://github.com/dirtyhenry/swift-blocks
- Owner: dirtyhenry
- License: mit
- Created: 2022-01-19T18:57:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T10:10:18.000Z (3 months ago)
- Last Synced: 2025-04-17T15:24:33.066Z (3 months ago)
- Topics: swift, swift-package
- Language: Swift
- Homepage: https://swiftpackageindex.com/dirtyhenry/swift-blocks/
- Size: 7.39 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
# 🧱 Blocks
[](https://github.com/dirtyhenry/swift-blocks/actions?query=workflow:%22Build+macOS%22++)
[](https://swiftpackageindex.com/dirtyhenry/swift-blocks)
[](https://swiftpackageindex.com/dirtyhenry/swift-blocks)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][hoods] package.## Usage
```swift
import Blocks
```## Installation
Swift Package Manager is recommended:
```swift
dependencies: [
.package(
url: "https://github.com/dirtyhenry/swift-blocks",
from: "0.4.0"
),
]
```Next, add `Blocks` as a dependency of your test target:
```swift
targets: [
.target(name: "MyTarget", dependencies: [
.product(name: "Blocks", package: "swift-blocks")
])
]
```## License
[MIT](https://choosealicense.com/licenses/mit/)
[hoods]: https://github.com/dirtyhenry/swift-hoods