
How to display the icon along with label?
Hey guys I'm trying to display a button in the toolbar of my macOS app and I can get it to either just display the icon or name and never both.
Here's the code:
.toolbar {
ToolbarItem(placement: .primaryAction) {
Button("New Shortcut", systemImage: "plus") {
print("New Shortcut")
}
.labelsVisibility(.visible)
.buttonStyle(.borderedProminent)
}
}