mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-02-05 13:13:45 +00:00
Merge pull request #119 from getreup/master
makes blurview and vibrancyview cliptobounds
This commit is contained in:
commit
912099cfa8
@ -12,7 +12,8 @@
|
||||
if (_visualEffectView) {
|
||||
[_visualEffectView removeFromSuperview];
|
||||
}
|
||||
|
||||
|
||||
self.clipsToBounds = true;
|
||||
if ([blurType isEqual: @"xlight"]) {
|
||||
blurEffect = [BlurAmount effectWithStyle:UIBlurEffectStyleExtraLight];
|
||||
} else if ([blurType isEqual: @"light"]) {
|
||||
@ -22,7 +23,7 @@
|
||||
} else {
|
||||
blurEffect = [BlurAmount effectWithStyle:UIBlurEffectStyleDark];
|
||||
}
|
||||
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
_visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
|
||||
_visualEffectView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
UIBlurEffect *blurEffect;
|
||||
|
||||
self.clipsToBounds = true;
|
||||
if ([blurType isEqual: @"xlight"]) {
|
||||
blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
|
||||
} else if ([blurType isEqual: @"light"]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user