shaps80/swiftbackports
Introducing a collection of SwiftUI backports to make your iOS development easier.
Sponsor
Building useful libraries like these, takes time away from my family. I build these tools in my spare time because I feel its important to give back to the community. Please consider Sponsoring me as it helps keep me working on useful libraries like these 😬
You can also give me a follow and a 'thanks' anytime.
[[Twitter]](http://twitter.com/shaps)
Usage
The library adopts a backport design by Dave DeLong that makes use of a single type to improve discoverability and maintainability when the time comes to remove your backport implementations, in favour of official APIs.
Backports for types are discoverable under the Backport.Foo namespace. Similarly backported functions are discoverable via backport.foo.
In some cases an entire framework has been backported.
Backports
UniformTypeIdentifiersCoreTransferableURLSessionasync methods
Where applicable, backports to associated APIs on other types (e.g. URL) will also be included as expected.
Installation
You can install manually (by copying the files in the Sources directory) or using Swift Package Manager (preferred)
To install using Swift Package Manager, add this to the dependencies section of your Package.swift file:
.package(url: "https://github.com/shaps80/SwiftBackports.git", .upToNextMinor(from: "1.0.0"))
Package Metadata
Repository: shaps80/swiftbackports
Default branch: main
README: README.md