mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-12 17:44:13 +00:00
71b7e59a62
This moves to modern Objective-C practices. Synthesized properties now use property declarations in a private category. UIVisualEffectViews will now only be created once, rather than on each change of blurType. BlurAmount uses a class property to track the currently set amount.
10 lines
166 B
Objective-C
10 lines
166 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
@interface BlurAmount : UIBlurEffect
|
|
|
|
@property (nonatomic, copy) NSNumber *blurAmount;
|
|
|
|
+ (id)updateBlurAmount:(NSNumber*)blurAmount;
|
|
|
|
@end
|