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
BlurEffect can't change Alpha #6
Comments
I'm currently doing the same thing as you. Looks fine to me but yeah, it's annoying they don't want you to do it like that. Off the top of my head you could do a screen capture to a UIImage add a blur filter and change it's opacity maybe? |
I really don't want to do what @esmondmissen suggests. It's a lot of overhead and additional processing for something that currently seems to work flawlessly with barely any additional work (I have yet to receive a complaint about visual glitches due to animating the opacity of visual effect views - possibly ontop of GLKit views? Not tested). As a matter of fact (despite producing a warning) I find the current solution to be 1. the most obvious 2. elegant, 3. concise and 4. maintainable. |
I agree with you. I was Googling for this error message to find a fix. Before iOS 8 I wrote a class to implement blur using GLKit and core image rendering on the GPU. It's not perfect and I'd prefer to use the Apple supplied view as their engineers have access to parts of the system that I don't. But it's fast and flexible. You're welcome to use it if you want. https://github.com/carlos4242/FrostedGlass |
Although I really hate warnings like this one, I agree with @pkluz. I am pretty sure there is a (probably undocumented) way to do it without causing this warning. If one of you guys will attend WWDC, go ahead and ask one of the UIKit guys. |
It's "hacky" but maybe you can simply take advantage of UIToolbar's effect. Works for me in modal views I want "frosted".
|
Does this warning make any problems when pushing the app to the App Store? |
Not at all.
|
Hi, pkluz I have been using your framework for a while, it's great and easy to use. However, I encountered the same problem as this. Then I found a workaround, and no warning log appears :) Cheers, |
This is a pretty good idea @Hengyu ! Fantastic! Will look at it! |
As discussed in this pull request: #5
I'm still receiving an warning:
It appears PKHUD is trying to animate the Alpha of the FrameView, while it's a subclass of UIVisualEffectView. The documentation of the VisualEffectView states the following:
So to solve this notification, the alpha fading must be done differently.
Any suggestions?
Cheers,
//Michael
The text was updated successfully, but these errors were encountered: