Skip to content

BaherTamer/SwiftSafeUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Cover

SwiftSafeUI

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.


📝 Requirements

  • Swift 5.10+
  • iOS 13.0+

🔩 Installation

🔨 For Xcode Projects

  1. In Xcode, select Add Packages from the File menu.
  2. Enter https://github.com/BaherTamer/SwiftSafeUI in the search field.
  3. Click Add Package (Set the Dependency Rule to Up to Next Major Version)
  4. After adding the package, you will be able to import SwiftSafeUI in your project by using.
import SwiftSafeUI

📦 For Swift Packages

Add a dependency in your Package.swift

dependencies: [
    .package(
        url: "https://github.com/BaherTamer/SwiftSafeUI.git",
        .upToNextMajor(from: "1.3.0")
    )
]

📄 Documentation

Check out the SwiftSafeUI Documentation for usage examples and instructions.


⚖️ License

SwiftSafeUI is available under the MIT license. See the LICENSE file for more details.


Made with 💚