- ContentView is my first View. And, add the .toast modifier to it.
- ContentView present(fullScreenCover) the LoginView. And, the LoginView has its own NavigationStack.
- 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.
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.