Hello,
I presents a View inside a NavigationView. I use the .toolbar modifier to set a navigation bar items. One of them must be in red as it represents a destructive action.
.toolbar(content: {
ToolbarItem(placement: .navigationBarLeading) {
Button { } label: {
Text("Delete").foregroundColor(.red)
}
}
}
How can we set a foregroundColor/fontWeight for a Button in a ToolBarItem? I've tried to set a custom ButtonStyle, foregroundColor to the Text, foregroundColor to the Button.