SwiftUI - SF Symbols not rendering in tabItemLabel

I can get SF Symbols to work fine in main body views.


This works:


struct ContentView : View {

    var body: some View {
        VStack {
            Text("Hello world")
            Image(systemName: "square.and.pencil")
        }
    }
}


But this does not - the tab item is empty


struct ContentView : View {
    @State private var selection = 0

    var body: some View {
        TabbedView(selection: $selection){
            Text("Hello world")
                .tabItemLabel(
                    Image(systemName: "square.and.pencil")
                )
                .tag(0)
        }
    }
}


Is this a known issue?

Apparently it is a known issue. If you provide an image yourself, it works as expected, but if you try to use SF Symbols, then it doesn't. Hopefully they'll fix it in the next beta.

Thanks - that's all I need to know for now... I can stop banging my head off the wall thinking I have got something wrong somewhere

It is working in beta 3.

SwiftUI - SF Symbols not rendering in tabItemLabel
 
 
Q