<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/blur(radius:opaque:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE4blur6radius6opaqueQr14CoreFoundation7CGFloatV_SbtF"
  },
  "title" : "blur(radius:opaque:)"
}
-->

# blur(radius:opaque:)

Applies a Gaussian blur to this view.

```
nonisolated func blur(radius: CGFloat, opaque: Bool = false) -> some View
```

## 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 to `false` to permit transparency.

## Discussion

Use `blur(radius:opaque:)` to apply a gaussian blur effect to the
rendering of this view.

The example below shows two [`Text`](/documentation/SwiftUI/Text) views, the first with no blur
effects, the second with `blur(radius:opaque:)` applied with the
`radius` set to `2`. The larger the radius, the more diffuse the
effect.

```
struct Blur: View {
    var body: some View {
        VStack {
            Text("This is some text.")
                .padding()
            Text("This is some blurry text.")
                .blur(radius: 2.0)
        }
    }
}
```

![A screenshot showing the effect of applying gaussian blur effect to](images/com.apple.SwiftUI/SwiftUI-View-blurRadius@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)