divadretlaw / CustomAlert

🔔 Custom Alert for SwiftUI
MIT License
195 stars 18 forks source link

Failure presenting the alert using a button action from another alert #18

Closed murad1981 closed 7 months ago

murad1981 commented 7 months ago

When I try to show CustomAlert when I press on a button from another CustomAlert (both are in the same SwiftUI view), the second CustomAlert does not show up and XCode logs this warning in the console:

[Presentation] Attempt to present a window with key 'CustomAlert' while there is already a window with key 'CustomAlert' presented on the current window scene.

divadretlaw commented 7 months ago

Yeah, this was semi-intentional to prevent showing multiple windows at once, but I don't see a strong reason to keep it, especially if it prevents other flows like your.

Should be fixed in 3.6.1

murad1981 commented 7 months ago

yeah there are many cases in which a user needs it, thanks for the effort.