Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup stays on screen #31

Open
tazmancoder opened this issue Apr 20, 2022 · 5 comments
Open

Popup stays on screen #31

tazmancoder opened this issue Apr 20, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@tazmancoder
Copy link

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

Simulator Screen Shot - iPhone 13 Pro Max - 2022-04-20 at 12 59 18
.

@aheze
Copy link
Owner

aheze commented Apr 20, 2022

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.

@tazmancoder
Copy link
Author

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.

@aheze aheze added the bug Something isn't working label Apr 29, 2022
@aehlke
Copy link
Contributor

aehlke commented Jan 22, 2024

Did you find another solution to this @tazmancoder ?

@tazmancoder
Copy link
Author

No, I wasn't able to find another solution to this issue.

@aehlke
Copy link
Contributor

aehlke commented Jan 22, 2024

@tazmancoder thanks - I figured out a solution: #93 (comment) by exposing presentedPopoverContainer and manipulating it in onDisappear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants