SwiftSafeUI is a Swift package that simplifies managing deprecated SwiftUI APIs across different iOS versions. It encapsulates deprecation handling logic, ensuring that your app always utilizes the latest available methods & views while gracefully falling back to older deprecated ones when needed. This way, you can maintain compatibility across iOS versions.
- Swift 5.10+
- iOS 13.0+
- In Xcode, select Add Packages from the File menu.
- Enter
https://github.com/BaherTamer/SwiftSafeUI
in the search field. - Click Add Package (Set the Dependency Rule to Up to Next Major Version)
- After adding the package, you will be able to import SwiftSafeUI in your project by using.
import SwiftSafeUI
Add a dependency in your Package.swift
dependencies: [
.package(
url: "https://github.com/BaherTamer/SwiftSafeUI.git",
.upToNextMajor(from: "1.3.0")
)
]
Check out the SwiftSafeUI Documentation for usage examples and instructions.
SwiftSafeUI is available under the MIT
license. See the LICENSE file for more details.