How the Backport type works
mainThe Backport type provides a way to use new SwiftUI modifiers on older iOS versions without using #available checks throughout your UI code.
Instead of wrapping views in conditional blocks like this:
if #available(iOS 26.0, *) {
MyView().glassEffect()
} else {
MyView()
}You use the .backport property to access the backported version of the modifier. The Backport type handles the runtime availability branching internally, providing the new effect on supported versions and a graceful fallback on older versions.
MyView()
.backport.glassEffect()