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

The toast is displayed under the sheet #17

Open
ILYA-2606 opened this issue Nov 26, 2024 · 0 comments
Open

The toast is displayed under the sheet #17

ILYA-2606 opened this issue Nov 26, 2024 · 0 comments

Comments

@ILYA-2606
Copy link

Describe the bug
The toast is displayed under the modal

To Reproduce
Steps to reproduce the behavior:

  1. Modify the example for sheet using:
.sheet(isPresented: $showSheet) {
    MyButtonView(showing: self.$showTopToast, title: "Top Toast", hideAll: self.dismissAll)
}
  1. Run the app
  2. Show the sheet
  3. Show the top toast
  4. The toast is displayed under the sheet

Expected behavior
The toast should be displayed on top of any content in the application (sheets, alerts, etc.)

Video
https://github.com/user-attachments/assets/18d79c31-38aa-4113-828d-d1ec468a1aac

Desktop:

  • OS: macOS Sonoma
  • Version: 14.7.1

Smartphone:

  • Device: iPhone SE 2
  • OS: iOS
  • Version: 16.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant