Skip to content

Moved creation of _visualEffectView out of layoutSubviews #113

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

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

StevenLambion
Copy link
Contributor

@StevenLambion StevenLambion commented Nov 7, 2016

I discovered a problem when rotating my app. It looked like it was creating a new blur effect and placing it on top of the last one. It's also expensive to create a new UIVisualEffectView on each sublayout, which can happen during animations.

To fix this, I've moved the creation of the UIVisualEffectView up where the blur effect is created. I also set the auto resizing mask, so the bounds doesn't need to be explicitly updated.

@Kureev Kureev merged commit 9afe2cb into Kureev:master Nov 11, 2016
@Kureev
Copy link
Owner

Kureev commented Nov 11, 2016

Awesome! Thanks for your contribution! I just released it in 1.1.3

lxp-git pushed a commit to Flickering-AI/react-native-blur that referenced this pull request Mar 7, 2022
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

Successfully merging this pull request may close these issues.

2 participants