Post

Replies

Boosts

Views

Activity

Reply to How to set foregroundColor/fontWeight for a ToolBarItem?
The attribute that determines the color of a tool bar is it's accentColor (or tint from iOS 15 and on). All you'll have to do is .toolbar(content: { ToolbarItem(placement: .navigationBarLeading) { Button { } label: { Text("Delete") } } .accentColor(Color.red) } This is for 'selected items' for unselected items you can specify the UITabBar appearance in the view init() method     init() {         UITabBar.appearance().backgroundColor = UIColor(Color.blue)         UITabBar.appearance().unselectedItemTintColor = UIColor(Color.green)      } The first one specifies the color of the background of the entire tab bar while the second one just colours the unselected items (non active ones)
Sep ’21