Anyone know why the following code doesn't show an image in a Mac-catalyst toolbar? I've tried with both Label
and Image
.
I've attached an image of what this looks like.
This is with Xcode 13.4 running on Monterey, but Ive seen something similar with Xcode 14 and Ventura.
struct ContentView: View {
var body: some View {
NavigationView {
Text("Hello, world!")
.padding()
.toolbar {
ToolbarItemGroup(placement: .primaryAction) {
Menu(content: {
Button("Test", action: {})
}, label: {
// Label("Menu", systemImage: "plus")
Image(systemName: "plus")
})
}
}
}
}
}