Mijick / PopupView

Popups presentation made simple (SwiftUI)
MIT License
1.19k stars 50 forks source link

Popup position shifts after enabling .tapOutsideToDismiss(true) and dismissing by tapping outside #141

Open El549 opened 3 weeks ago

El549 commented 3 weeks ago

Description:

I'm using the PopupView framework and have encountered an issue when I enable .tapOutsideToDismiss(true) to allow dismissing the popup by tapping outside. The specific problem is:

Steps to Reproduce:

  1. Configure PopupView with .tapOutsideToDismiss(true) enabled.
  2. Trigger the popup to display.
  3. Dismiss the popup by tapping outside.
  4. Trigger the popup again.

Expected Behavior:

Actual Behavior:

Possible Cause:

Additional Information:

I hope the developers can look into this issue. Thank you very much!