Merge pull request #131 from gitim/fix-duplicate-symbol-error

Fix duplicate symbols error in xcode
This commit is contained in:
Alexey 2017-01-04 16:58:24 +01:00 committed by GitHub
commit be9defac16
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> #import <objc/runtime.h>
@interface UIBlurEffect (Protected) @interface UIBlurEffect (Protected)
@property (nonatomic, readonly) id effectSettings; @property (nonatomic, readonly) id effectSettings;
@end @end
@interface BlurAmount : UIBlurEffect
@property (nonatomic, copy) NSNumber *blurAmount;
@end
@implementation BlurAmount @implementation BlurAmount

View File

@ -1,5 +1,5 @@
#import "BlurView.h" #import "BlurView.h"
#import "BlurAmount.m" #import "BlurAmount.h"
@implementation BlurView { @implementation BlurView {
@ -12,7 +12,7 @@
if (_visualEffectView) { if (_visualEffectView) {
[_visualEffectView removeFromSuperview]; [_visualEffectView removeFromSuperview];
} }
self.clipsToBounds = true; self.clipsToBounds = true;
if ([blurType isEqual: @"xlight"]) { if ([blurType isEqual: @"xlight"]) {
blurEffect = [BlurAmount effectWithStyle:UIBlurEffectStyleExtraLight]; blurEffect = [BlurAmount effectWithStyle:UIBlurEffectStyleExtraLight];