iOS Developer Library

Developer

UIKit Framework Reference UIBlurEffect Class Reference

Options
Deployment Target:

On This Page
Language:

UIBlurEffect

A UIBlurEffect object applies a blurring effect to the content layered behind a UIVisualEffectView. Views added to the contentView of a UIVisualEffectView are not affected by the blur effect.

  • Blur styles available for UIBlurEffect objects.

    Declaration

    Swift

    enum UIBlurEffectStyle : Int { case ExtraLight case Light case Dark }

    Objective-C

    typedef enum { UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, UIBlurEffectStyleDark } UIBlurEffectStyle;

    Constants

    • extraLight

      UIBlurEffectStyleExtraLight

      Creates a blurring effect in the view. The area of the view is lighter in hue than the underlying view.

      Available in iOS 8.0 and later.

    • light

      UIBlurEffectStyleLight

      Creates a blurring effect in the view. The area of the view is the same approximate hue of the underlying view.

      Available in iOS 8.0 and later.

    • dark

      UIBlurEffectStyleDark

      Creates a blurring effect in the view. The area of the view is darker in hue than the underlying view.

      Available in iOS 8.0 and later.

    Import Statement

    Objective-C

    @import UIKit;

    Swift

    import UIKit

    Availability

    Available in iOS 8.0 and later.