Applies a Gaussian blur effect to a view with a specified radius.
97.2% of iOS users can use this modifier
iOS 13+ required
.blur(radius:) Applies blur with specified radius
radius: CGFloat.blur(radius:opaque:) Applies blur with opacity control
radius: CGFloatopaque: BoolApply a 5-point blur radius
Image("landscape")
.blur(radius: 5)Animate blur radius on state change
@State private var isBlurred = false
Image("landscape")
.blur(radius: isBlurred ? 10 : 0)
.animation(.easeInOut, value: isBlurred)Loading related modifiers...
The .blur() modifier requires iOS 13 or later. This means 97.2% of current iOS users can use this modifier.
Apply the .blur() modifier to any SwiftUI view. Check the code examples above for usage patterns.
Visit the official Apple documentation for detailed information.