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>
|
#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
|
||||||
|
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue