Skip to content

<UIVisualEffectView 0x7fe2130553e0> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1. #80

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

Closed
d3ce1t opened this issue May 2, 2016 · 3 comments

Comments

@d3ce1t
Copy link

d3ce1t commented May 2, 2016

I get this warning whenever I cancel or accept the TOCropViewController. In order to reproduce this, follow these steps:

  1. Open TOCropViewControllerExample project
  2. Run on Simulator
  3. Open an image for cropping
  4. Tap Cancel or Done and the described warning will appear in console.

Expected Behavior

No warning in console

Actual Behavior

Warning in console

@TimOliver
Copy link
Owner

TimOliver commented May 3, 2016

Hi! Thanks for the report!

This warning can't be helped. It's printed by the system when performing the alpha fade animation on the UIVisualEffectView instance that creates the blurry effect outside the region of the crop box. While the warning itself says the effect will look broken, it looks absolutely fine to me. Unfortunately, since it's on the system level, it can't be suppressed.

However, I did a bit of research, and discovered there's actually now an official way to perform the animation in iOS 9, that creates a blurry animation effect similar to dragging down on the iOS Home Screen to open Spotlight (i.e., the blur radius expands instead of a static crossfade).

I've since modified the library to use this animation method on iOS 9, and the console warning has gone away. It will, however, still appear if the device in question is running iOS 8.

Thanks a lot for the help!

@d3ce1t
Copy link
Author

d3ce1t commented May 6, 2016

Thank you very much for your quickly fix :).

I've just tested it on Simulator from iOS version 7 to 9 and I can confirm that aforementioned warning no longer appears in either of the tested versions. I would have expected to appear in 7 and 8 after your words. But it doesn't. So maybe something else has been changed?. Anyway, I only mention to put it in your knowledgement.

Thank you again for your great work!

@TimOliver
Copy link
Owner

Haha no problems! Thanks for reporting it! I was going to ignore it forever!

Uh-oh. Really? It SHOULD still be happening in iOS 8. It won't happen in iOS 7 since UIVisualEffectView wasn't available then, so it's using a normal UIToolbar instead.

I might need to test that again... XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants