<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "swift: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIVibrancyEffect/init(forBlurEffect:style:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIVibrancyEffect(cm)effectForBlurEffect:style:::SYNTHESIZED::c:objc(cs)UIVibrancyEffect"
  },
  "title" : "init(forBlurEffect:style:)"
}
-->

# init(forBlurEffect:style:)

Creates a vibrancy effect with the specified blur and style values.

```
init(forBlurEffect blurEffect: UIBlurEffect, style: UIVibrancyEffectStyle)
```

## Parameters

`blurEffect`

The [`UIBlurEffect`](/documentation/UIKit/UIBlurEffect) used by the blurred view the vibrancy effect is attached to.

`style`

The style that defines what level of vibrancy to apply to the content. For a list of possible values, see [`UIVibrancyEffectStyle`](/documentation/UIKit/UIVibrancyEffectStyle).

## Return Value

The vibrancy effect object to use in your visual effect view.

## Discussion

When you create a new vibrancy effect, use the same [`UIBlurEffect`](/documentation/UIKit/UIBlurEffect) that you used to create the blur view. Using a different [`UIBlurEffect`](/documentation/UIKit/UIBlurEffect) can cause unwanted visual effect combinations.

---

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)