Hello, I want to create a Label element at the bottom of my NavigationView using a ToolbarItem. I’m using this code:
struct ContentView: View {
var body: some View {
NavigationView {
List(0 ..< 5) { item in
Text("Hello")
}
.navigationTitle("My items")
.toolbar(content: {
ToolbarItem(placement: .bottomBar) {
Button(action: {}, label: {
Label("Add", systemImage: "plus.circle.fill")
})
}
})
}
}
}
The problem is that the Label does not display correctly, only the icon is visible…
Any idea on how to solve this issue ?