Initializer

init(blurEffect:style:)

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

Declaration

init(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.

See Also

Creating a Vibrancy Effect

init(blurEffect: UIBlurEffect)

Creates a vibrancy effect for a specific blur effect.

enum UIVibrancyEffectStyle

Constants for the vibrancy styles.