-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Taking bigger rect into account when blurring #15
Comments
If you're curious what Apple's doing, at least from an input sense, you can take a look at WARNING! CKBlurView's implementation. USES PRIVATE APIS! DO NOT SHIP APPS WITH THIS! It uses a private API called Is that possible? Sure. A custom Might as well make it |
Thank you for sharing the link, I will definitely look into it. |
2 * blur radius? |
2 * blurRadius would be a perfect value in my opinion. |
I've noticed a difference between this, and apple's implementation of the blur effect. Apple is probably blurring a bigger rect than the .bounds of the frostview, and then clipping it to the size of blur view's frame. When for example scrolling, behind a UIToolbar, you can see the back views blurred before they're actually intersecting the toolbar frame.
I would try something like:
rect = CGRectMake(rect.origin.x - blurRadius, rect.origin.y - blurRadius, rect.size.width + blurRadius * 2.0, rect.size.height + blurRadius * 2.0);
//not going out of the window
Are you seing this possible ? :)
The text was updated successfully, but these errors were encountered: