Merge pull request #131 from gitim/fix-duplicate-symbol-error
Fix duplicate symbols error in xcode
This commit is contained in:
commit
be9defac16
|
@ -0,0 +1,7 @@
|
|||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface BlurAmount : UIBlurEffect
|
||||
+ (id)updateBlurAmount:(NSNumber*)blurAmount;
|
||||
|
||||
@property (nonatomic, copy) NSNumber *blurAmount;
|
||||
@end
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue