Post

Replies

Boosts

Views

Activity

Comment on presentationMode.wrappedValue.dismiss() Bug iOS 16 | SwiftUI 4
Okay, I know tried the exact same but with a popover and not a sheet and it works like a charm. Another thing I recognized is that if you write the popover View code in the same View struct as the popover modifier itself, hiding it would not work with presentationMode but with the isPresenting var for the popover itself. If you write the popover View code in its own struct and then init this struct in the popover modifier then presentationMode will work for hiding the popover. Really confusing.
Sep ’22