Describe the bug
The toast is displayed under the modal
To Reproduce
Steps to reproduce the behavior:
- Modify the example for sheet using:
.sheet(isPresented: $showSheet) {
MyButtonView(showing: self.$showTopToast, title: "Top Toast", hideAll: self.dismissAll)
}
- Run the app
- Show the sheet
- Show the top toast
- 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
Describe the bug
The toast is displayed under the modal
To Reproduce
Steps to reproduce the behavior:
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:
Smartphone: