Skip to content

The toast is displayed under the sheetΒ #17

@ILYA-2606

Description

@ILYA-2606

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions