An open API service indexing awesome lists of open source software.

https://github.com/thatfactory/extensions

A collection of useful Swift/SwiftUI extensions and preview traits ⚙️
https://github.com/thatfactory/extensions

extension preview swift swiftui traits

Last synced: 4 months ago
JSON representation

A collection of useful Swift/SwiftUI extensions and preview traits ⚙️

Awesome Lists containing this project

README

          

[![swift-version](https://img.shields.io/badge/swift-6.2-ea7a50.svg?logo=swift&logoColor=white)](https://developer.apple.com/swift/)
[![xcode-version](https://img.shields.io/badge/xcode-26.2-50ace8.svg?logo=xcode&logoColor=white)](https://developer.apple.com/xcode/)
[![spm-ready](https://img.shields.io/badge/spm-ready-b68f6a.svg?logo=gitlfs&logoColor=white)](https://developer.apple.com/documentation/xcode/swift-packages)
[![platforms](https://img.shields.io/badge/platforms-iOS%2018+%20%7C%20macOS%2015+%20-lightgrey.svg?logo=apple&logoColor=white)](https://en.wikipedia.org/wiki/List_of_Apple_operating_systems)
[![docc](https://img.shields.io/badge/docc-documentation-0288D1.svg?logo=bookstack&logoColor=white)](https://thatfactory.github.io/extensions/documentation/extensions/)
[![license](https://img.shields.io/badge/license-MIT-67ac5b.svg?logo=googledocs&logoColor=white)](https://en.wikipedia.org/wiki/MIT_License)
[![release](https://github.com/thatfactory/extensions/actions/workflows/release.yml/badge.svg)](https://github.com/thatfactory/extensions/actions/workflows/release.yml)

# Extensions ⚙️
A collection of useful Swift/SwiftUI extensions.

## Integration
### Xcode
Use Xcode's [built-in support for SPM](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).

*or...*

### Package.swift
In your `Package.swift`, add `Extensions` as a dependency:

```swift
dependencies: [
.package(
url: "https://github.com/thatfactory/extensions",
from: "0.1.0"
)
]
```

Associate the dependency with your target:

```swift
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(
name: "Extensions",
package: "extensions"
)
]
)
]
```

Run: `swift build`