AQUI icon indicating copy to clipboard operation
AQUI copied to clipboard

UIVisualEffectView inexplicably hidden

Open jadar opened this issue 5 years ago • 2 comments

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

jadar avatar Feb 01 '20 19:02 jadar

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.

ice-cream-coder avatar Jul 11 '20 23:07 ice-cream-coder

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

eruveo avatar Aug 09 '20 18:08 eruveo