# shaps80/SwiftUIBackports

A collection of SwiftUI backports for iOS, macOS, tvOS and watchOS

Repository: https://github.com/shaps80/SwiftUIBackports
Canonical: https://ross.abutalabs.com/products/swiftuibackports
Language: Swift
License: MIT
License Family: permissive
Topics: modal, presentation, swift, textview, sharesheet, backport, photopicker, propertywrapper, swiftui, ios, macos, tvos, watchos
Last push: 2026-06-12T23:38:57+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 87, release rhythm 59, longevity 100
- inputs: {"age_days": 1531, "days_push": 82, "days_rel": 277, "gap_med": 1, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1088, forks 72 (observed 2026-08-28T04:03:32.492836+00:00)

## What it is
A Swift package providing backports of modern SwiftUI APIs to older versions of iOS, macOS, tvOS, and watchOS. It mirrors Apple's API names and behavior so code stays familiar and is easy to migrate once the deployment target reaches the native API.

## Use cases
- use presentationDetents on older iOS versions
- support newer SwiftUI APIs while targeting old OS versions
- backport LabeledContent to older Apple platforms
- request app review on older iOS versions
- share sheet and photo picker on older SwiftUI versions
- reduce migration effort when raising deployment targets

## When to choose
- you support older iOS/macOS/tvOS/watchOS versions but want modern SwiftUI APIs
- you want API-compatible shims that are easy to remove later
- you need a reference implementation for writing your own SwiftUI backports

## When to avoid
- your deployment target already includes the native SwiftUI APIs
- you need backports for platforms older than iOS 15/macOS 12 on v27+
- you build with non-Apple UI frameworks like UIKit-only or cross-platform toolkits

## Facets
- artifact type: library
- maturity: active
- function: ui-components, sdk, developer-tools
- domain: mobile-development, cross-platform, apple-ecosystem, frontend
- platform: cross-platform
- tags: swiftui, backports, apple-platforms, watchos, tvos, compatibility-shims, property-wrappers, ios, macos, swift, mobile

## Member repositories
- shaps80/SwiftUIBackports (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.492836+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:23.207448+00:00, confidence not recorded.
  - readme: https://github.com/shaps80/SwiftUIBackports (fetched 2026-08-28T04:03:32.492836+00:00, sha 7b94519da677)
- Data as of 2026-08-30T08:39:29.467469+00:00.
