Open tazmancoder opened 2 years ago
I’ve seen this before, wasn’t able to figure out a universal solution. But anyway try dismissing the popover first before navigating to another tab.
Well, it would be nice to come up with one. Unfortunately I can’t control if a user taps a tab. However, I did decide to have the popover dismiss after 1 sec. Hopefully that will work, thanks for getting back to me.
Did you find another solution to this @tazmancoder ?
No, I wasn't able to find another solution to this issue.
@tazmancoder thanks - I figured out a solution: https://github.com/aheze/Popovers/issues/93#issuecomment-1903362448 by exposing presentedPopoverContainer and manipulating it in onDisappear
I have a SwiftUI app that has a TabView. On the second tab I load contacts and present a popover when done loading contacts. When the popup is on screen if I tap any other tab I get the following error:
[Popovers] - No window was found when presenting popover. Please file a bug report (https://github.com/aheze/Popovers/issues).
The popover stays on the screen
.