Contents

shaps80/swiftbackports

Introducing a collection of SwiftUI backports to make your iOS development easier.

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

  • UniformTypeIdentifiers
  • CoreTransferable
  • URLSession async 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