File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ - (void)setBlurType:(NSString *)blurType
12
12
if (_visualEffectView) {
13
13
[_visualEffectView removeFromSuperview ];
14
14
}
15
-
15
+
16
+ self.clipsToBounds = true ;
16
17
if ([blurType isEqual: @" xlight" ]) {
17
18
blurEffect = [BlurAmount effectWithStyle: UIBlurEffectStyleExtraLight];
18
19
} else if ([blurType isEqual: @" light" ]) {
@@ -22,7 +23,7 @@ - (void)setBlurType:(NSString *)blurType
22
23
} else {
23
24
blurEffect = [BlurAmount effectWithStyle: UIBlurEffectStyleDark];
24
25
}
25
-
26
+
26
27
dispatch_async (dispatch_get_main_queue (), ^{
27
28
_visualEffectView = [[UIVisualEffectView alloc ] initWithEffect: blurEffect];
28
29
_visualEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ - (void)setBlurType:(NSString *)blurType {
24
24
25
25
UIBlurEffect *blurEffect;
26
26
27
+ self.clipsToBounds = true ;
27
28
if ([blurType isEqual: @" xlight" ]) {
28
29
blurEffect = [UIBlurEffect effectWithStyle: UIBlurEffectStyleExtraLight];
29
30
} else if ([blurType isEqual: @" light" ]) {
You can’t perform that action at this time.
0 commit comments