Initializer

init(blurEffect:)

Creates a vibrancy effect for a specific blur effect.

Declaration

init(blurEffect: UIBlurEffect)

Parameters

blurEffect

The UIBlurEffect used by the blurred view the vibrancy effect is attached to.

Return Value

The vibrancy effect to be used by a UIVisualEffectView object.

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, style: UIVibrancyEffectStyle)

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

enum UIVibrancyEffectStyle

Constants for the vibrancy styles.