Merge pull request #119 from getreup/master

makes blurview and vibrancyview cliptobounds
This commit is contained in:
Alexey 2016-11-21 15:26:16 +01:00 committed by GitHub
commit 912099cfa8
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -24,6 +24,7 @@
UIBlurEffect *blurEffect;
self.clipsToBounds = true;
if ([blurType isEqual: @"xlight"]) {
blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
} else if ([blurType isEqual: @"light"]) {