diff --git a/ios/BlurAmount.h b/ios/BlurAmount.h new file mode 100644 index 0000000..8f360f5 --- /dev/null +++ b/ios/BlurAmount.h @@ -0,0 +1,7 @@ +#import + +@interface BlurAmount : UIBlurEffect ++ (id)updateBlurAmount:(NSNumber*)blurAmount; + +@property (nonatomic, copy) NSNumber *blurAmount; +@end diff --git a/ios/BlurAmount.m b/ios/BlurAmount.m index c5448f5..70c74f6 100644 --- a/ios/BlurAmount.m +++ b/ios/BlurAmount.m @@ -1,13 +1,10 @@ -#import +#import "BlurAmount.h" #import @interface UIBlurEffect (Protected) @property (nonatomic, readonly) id effectSettings; @end -@interface BlurAmount : UIBlurEffect -@property (nonatomic, copy) NSNumber *blurAmount; -@end @implementation BlurAmount diff --git a/ios/BlurView.m b/ios/BlurView.m index df5ed68..f6c80e0 100644 --- a/ios/BlurView.m +++ b/ios/BlurView.m @@ -1,5 +1,5 @@ #import "BlurView.h" -#import "BlurAmount.m" +#import "BlurAmount.h" @implementation BlurView { @@ -12,7 +12,7 @@ if (_visualEffectView) { [_visualEffectView removeFromSuperview]; } - + self.clipsToBounds = true; if ([blurType isEqual: @"xlight"]) { blurEffect = [BlurAmount effectWithStyle:UIBlurEffectStyleExtraLight];