Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dirtyhenry/swift-blocks
🧱 A collection of my Swift building blocks.
https://github.com/dirtyhenry/swift-blocks
swift swift-package
Last synced: about 2 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T15:04:25.000Z (2 months ago)
- Last Synced: 2024-11-06T09:19:37.422Z (about 2 months ago)
- Topics: swift, swift-package
- Language: Swift
- Homepage: https://swiftpackageindex.com/dirtyhenry/swift-blocks/
- Size: 7.31 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 🧱 Blocks
[![Build macOS CI state badge](https://github.com/dirtyhenry/swift-blocks/workflows/Build%20macOS/badge.svg)](https://github.com/dirtyhenry/swift-blocks/actions?query=workflow:%22Build+macOS%22++)
[![Swift versions compatibility badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fdirtyhenry%2Fswift-blocks%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/dirtyhenry/swift-blocks)
[![Platforms compatibility badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fdirtyhenry%2Fswift-blocks%2Fbadge%3Ftype%3Dplatforms)](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