A SwiftUI popover presented from a button installed in the nav bar via .toolbar(...) does not dismiss when tapped outside the popover. Instead, it jumps to the upper left corner of the screen.
This started happening in Xcode 12 beta 6. I've filed a bug with Apple (FB8546290).
This started happening in Xcode 12 beta 6. I've filed a bug with Apple (FB8546290).
Code Block .toolbar { Button("Bad Popover") { isShowingBadPopover.toggle() } .popover(isPresented: $isShowingBadPopover) { Text("Tap outside and notice that the popover moves instead of being dismissed.") .padding() .frame(width: 320, height: 100) } }