Mijick / Popups

Popups, popovers, sheets, alerts, toasts, banners, (...) presentation made simple. Written with and for SwiftUI.
Apache License 2.0
1.38k stars 61 forks source link

Disable black overlay using configure? #133

Closed praveenperera closed 3 months ago

praveenperera commented 3 months ago

For most situations I think the transparent black overlay that dims the screen makes sense, but would it be possible to disable this with the configure. Some situations I don't want the entire screen dimmed on a notification type popup (top and bottom).

FulcrumOne commented 3 months ago

Hey @praveenperera,

This is possible, please check the code below:

TopPopup_Notification()
    .showAndStack()
    .hideOverlay()

I can see that this is not very user-friendly, so I will probably move it to a popup declaration in the future versions.

Have a nice day, T.K.

praveenperera commented 3 months ago

Oh sorry about that must have missed it in the readme. But ya probably makes more sense in the configure?