I started to experiment with the new SwiftUI framework, announced on the WWDC 2019 and started the tutorial on https://developer.apple.com/tutorials/swiftui.
Now I came to the point where to connect the Profile to the HomeScreen via the PresentationButton
. More precisely I am talking about this section of code in Home.swift
:
.navigationBarItems(trailing:
PresentationButton(
Image(systemName: "person.crop.circle")
.imageScale(.large)
.accessibility(label: Text("User Profile"))
.padding(),
destination: ProfileHost()
)
)
When I first click on the button the Profile Sheet appears just fine, but when I dismiss it and then click on the button again nothing happens.
Does anyone know why this is the case ?
Thanks in advance