UIView+Blur.h 807 B

123456789101112131415161718192021222324252627282930
  1. #import <UIKit/UIKit.h>
  2. typedef enum {
  3. UIViewBlurLightStyle,
  4. UIViewBlurDarkStyle
  5. } UIViewBlurStyle;
  6. @interface UIView (Blur)
  7. /* The UIToolbar that has been put on the current view, use it to do your bidding */
  8. @property (strong,nonatomic,readonly) UIView* blurBackground;
  9. /* tint color of the blurred view */
  10. @property (strong,nonatomic) UIColor* blurTintColor;
  11. /* intensity of blurTintColor applied on the blur 0.0-1.0, default 0.6f */
  12. @property (assign,nonatomic) CGFloat blurTintColorIntensity;
  13. /* returns if blurring is enabled */
  14. @property (readonly,nonatomic) BOOL isBlurred;
  15. /* Style of Toolbar, remapped to UIViewBlurStyle typedef above */
  16. @property (assign,nonatomic) UIViewBlurStyle blurStyle;
  17. /* method to enable Blur on current UIView */
  18. -(void)enableBlur:(BOOL) enable;
  19. @end