I am working on porting my app to work with visionOS. I've come across an issue where ornaments remain hidden when changing views.
I have my view within a TabView and the ornament bar shows the first time but when changing to another tab and back it does not reappear.
I assume this is a bug as it doesn't make sense that it disappears. Has anyone else had this or am I doing something wrong?
I did try to programmatically show and hide but it seems the view is completely removed from the stack and does not return.
Here is the Swift code I am using:
NavigationStack {
VStack {
*MainView*
}
.toolbar {
ToolbarItem(placement: .bottomOrnament) {
*ToolbarView*
}
}
}