elai950 / AlertToast

Create Apple-like alerts & toasts using SwiftUI
https://elai950.github.io/AlertToast/
MIT License
2.07k stars 187 forks source link

Hud toast appears behind the navigation toolbar #96

Open 27shutterclicks opened 3 weeks ago

27shutterclicks commented 3 weeks ago

Describe the bug When presenting a toast with a system image icon and using the .hud display mode, the toast appears behind the navigation toolbar.

image

This also causes for the toast to not be clickable unless you manage to find a small area peaking from under the toolbar that covers it.

The toast was added to a view that gets loaded in another template view. However, the same thing happens without the template, by adding the toast to the root VStack of the view:

image

To Reproduce I just added a toast as per the documentation.

Expected behavior The toast should appear above everything else, including the navigation toolbar.

akardas16 commented 1 week ago

I can confirm this bug also in my side. I have tried another library from different author. same issue presented