Skip to content

One place to modifier toast #99

@tospery

Description

@tospery
  1. ContentView is my first View. And, add the .toast modifier to it.
  2. ContentView present(fullScreenCover) the LoginView. And, the LoginView has its own NavigationStack.
  3. When i toggle the toast variable in LoginView. The ContentView will show the toast View. But, the toast View will behind the LoginView. Need close LoginView, you will see the toast.

How to solve this problem? My goal is to modifier toast in the first view so that toast will display normally whenever/anyplace it is triggered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions