init(forBlurEffect:style:)
Creates a vibrancy effect with the specified blur and style values.
Declaration
init(forBlurEffect blurEffect: UIBlurEffect, style: UIVibrancyEffectStyle)Parameters
- blurEffect:
The 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.
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 that you used to create the blur view. Using a different UIBlurEffect can cause unwanted visual effect combinations.