I want to present modally view and after dismissing present it once again.
struct ContentView : View {
var body: some View {
NavigationView {
Group {
Text("hi")
Text("hello")
}
.navigationBarItem(title: Text("Demo"))
.navigationBarItems(trailing:
PresentationButton(
Image(systemName: "person.crop.circle")
.imageScale(.large)
.accessibility(label: Text("User Profile"))
.padding(),
destination: Text("User Profile")
)
)
}
}
}
It triggers only during first tap. After dismissing destination view the tap on PresentationButton
do nothing. Do someone have the solution for this?