Fix duplicate symbols error in xcode

This commit is contained in:
Timur Gibadullin 2016-12-21 14:31:08 +03:00
parent 763b0b1bc0
commit 8e7ccb58ea
3 changed files with 10 additions and 6 deletions

7
ios/BlurAmount.h Normal file
View File

@ -0,0 +1,7 @@
#import <UIKit/UIKit.h>
@interface BlurAmount : UIBlurEffect
+ (id)updateBlurAmount:(NSNumber*)blurAmount;
@property (nonatomic, copy) NSNumber *blurAmount;
@end

View File

@ -1,13 +1,10 @@
#import <UIKit/UIKit.h>
#import "BlurAmount.h"
#import <objc/runtime.h>
@interface UIBlurEffect (Protected)
@property (nonatomic, readonly) id effectSettings;
@end
@interface BlurAmount : UIBlurEffect
@property (nonatomic, copy) NSNumber *blurAmount;
@end
@implementation BlurAmount

View File

@ -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];