swift-blocks

0.3.0

🧱 A collection of my Swift building blocks.
dirtyhenry/swift-blocks

What's New

2024-03-21T09:48:17Z
  • Add ways to list XCode devices as a CLI command and a CI script;
  • New project icon
  • Add Bundle extension syntactic sugar to load Data and String contents
  • Add CopyUtils to lint copy text
  • Start handling colors in CLI utils
  • MailtoComponents now conforms to Equatable (for TCA usage)
  • Improve the macOS app layout
  • Add allFontNames extension for AppKit
  • Add Pasteboard utility struct
  • Iterate on TaskStateButton
  • Add new PlainDatePicker SwiftUI component (with demo)
  • Fix Linux support
  • Improve usability of MockTransport
  • Use URLRequestHeaderItem in Endpoint

🧱 Blocks

Build macOS

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;
  • BlocksAppTCA: a basic App using Blocks within an app designed using The Composable Architecture.

Usage

import Blocks

Installation

Swift Package Manager is recommended:

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

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

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

License

MIT

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Apr 30 2024 00:42:28 GMT-0900 (Hawaii-Aleutian Daylight Time)