Applies a Gaussian blur to the view.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
Parameters
radius
The radial size of the blur. A blur is more diffuse when its radius is large.
opaque
A Boolean value that indicates whether the blur renderer permits transparency in the blur output. Set to
true
to create an opaque blur, or set tofalse
to permit transparency.
Discussion
The following shows two versions of the same image side by side; at left is the original, and at right is a duplicate with its blur radius set to 10:
