Skip to content
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

UIVisualEffectView inexplicably hidden #3

Open
jadar opened this issue Feb 1, 2020 · 2 comments
Open

UIVisualEffectView inexplicably hidden #3

jadar opened this issue Feb 1, 2020 · 2 comments

Comments

@jadar
Copy link

jadar commented Feb 1, 2020

It seems like UIVisualEffectView is getting hidden in the updateUIView function. The guarded unwrap of context.environment.visualEffect fails and causes the uiView to get hidden. However, the visualEffect environment property is set on the VisualEffectView struct and thus also the environment. Could this be a SwiftUI bug? I'm new enough to SwiftUI that I'm not quite certain how all the environment stuff works. Is there a particular reason that you want to use the environment version versus the actual value on the struct?

With the hidden line as written:
Screen Shot 2020-02-01 at 1 43 20 PM

With the hidden line commented out:
Screen Shot 2020-02-01 at 1 43 26 PM

@ice-cream-coder
Copy link

I had the same exact issue. I think I'll just leave the line commented out, but it would be interesting to know the why this is a bug.

@eruveo
Copy link

eruveo commented Aug 9, 2020

Thank you. I was wondering why the lib didn't work.

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

3 participants