- August 28, 2025
- Mins Read
SwiftSafeUI is a Swift package designed to streamline the management of deprecated SwiftUI APIs across OS versions. It provides a clean and efficient way to handle deprecation logic, ensuring your app always uses the latest APIs while seamlessly falling back to older, deprecated ones when necessary.
As SwiftUI evolves with every release, Apple frequently introduces new APIs while deprecating older ones. Ignoring deprecated functionality can lead to accumulating technical debt, making your code harder to maintain and less adaptable to future changes. Without a proper strategy, version checks and workarounds can clutter your codebase, slowing down development and increasing the risk of bugs. Staying ahead of these changes ensures your app remains efficient, maintainable, and ready to leverage the latest SwiftUI improvements.
SwiftSafeUI simplifies managing deprecated APIs in SwiftUI, providing a structured and efficient approach to handling version-specific UI changes across different OS versions. It helps you:
Swift 5.9+
iOS 13.0+
iPadOS 13.0+
macOS 10.15+
🔨 For Xcode Projects
https://github.com/BaherTamer/SwiftSafeUI
in the search field.
import SwiftSafeUI
Add a dependency in your Package.swift
dependencies: [
.package(
url: “https://github.com/BaherTamer/SwiftSafeUI.git”,
.upToNextMajor(from: “1.7.1”)
)
]
This package provides you with an easy way to show tooltips over any SwiftUI view, since Apple does not provide ...
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or ...
Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and ...