Hi everyone,
I am experiencing an issue with Toolbar and NavigationView on iOS 16.
Here are two small views to explain my bug:
struct ContentView: View {
var body: some View {
NavigationView {
VStack {
NavigationLink(destination: OtherView()) {
Text("Link to OtherView")
}
}
}
}
}
struct OtherView: View {
var body: some View {
ScrollView {
Text("ScrollView")
}
.toolbar {
ToolbarItem(placement: .bottomBar) {
Text("Great Toolbar")
}
}
}
}
The toolbar of OtherView is displayed but is empty:
If I replace NavigationView with NavigationStack, it works well:
However, I should use a NavigationView because my app is available on iOS 15.
Would you know how to solve this?
Thank you, regards