SwiftUI - Label in ToolbarItem not displayed correctly

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… :confused:
Any idea on how to solve this issue ?

@ericlm Do you still have issues with this?

Yes, the issue still the same, even 5 months later :sweat_smile:

This topic was automatically closed after 166 days. New replies are no longer allowed.