You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
With the hidden line commented out:
The text was updated successfully, but these errors were encountered:
It seems like UIVisualEffectView is getting hidden in the
updateUIView
function. The guarded unwrap ofcontext.environment.visualEffect
fails and causes theuiView
to get hidden. However, the visualEffect environment property is set on theVisualEffectView
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:
With the hidden line commented out:
The text was updated successfully, but these errors were encountered: