HWVisualEffectView.h 683 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // HWVisualEffectView.h
  3. // HWPanModal
  4. //
  5. // Created by heath wang on 2019/6/14.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface HWVisualEffectView : UIVisualEffectView
  10. /**
  11. * tint color
  12. * default is nil
  13. */
  14. @property (nullable, nonatomic, strong) UIColor *colorTint;
  15. /**
  16. * tint color alpha
  17. * default is 0.0
  18. */
  19. @property (nonatomic, assign) CGFloat colorTintAlpha;
  20. /**
  21. * blur radius, change it to make blur affect
  22. * default is 0.0
  23. */
  24. @property (nonatomic, assign) CGFloat blurRadius;
  25. /**
  26. * scale factor.
  27. * default is 1.0
  28. */
  29. @property (nonatomic, assign) CGFloat scale;
  30. - (void)updateBlurEffect:(UIVisualEffect *)effect;
  31. @end
  32. NS_ASSUME_NONNULL_END