PSPDFBlurView


@interface PSPDFBlurView : UIView

PSPDFBlurView allows you to get a blurred background.

  • Controls if blurring is enabled. Defaults to NO. - warning: You cannot set the backgroundColor property if blurEnabled is set to YES!

    Declaration

    Objective-C

    @property (getter=isBlurEnabled, assign, readwrite, nonatomic) BOOL blurEnabled;

    Swift

    var isBlurEnabled: Bool { get set }
  • Everything from the renderView up the view hierarchy to this view is used to render the background. Defaults to the view’s superview.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) UIView *_Nullable renderView;

    Swift

    weak var renderView: UIView? { get set }
  • The containerView is hidden before rendering the background. This is useful because you usually only want to blur the views below a given view. Defaults to the view itself.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) UIView *_Nullable containerView;

    Swift

    weak var containerView: UIView? { get set }
  • Wrapper for the blurEnabled property since UIAppearance can only handle object values.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) NSNumber *blurEnabledObject;

    Swift

    var blurEnabledObject: NSNumber? { get set }