1

I have been trying to change the background color of the toolbar, and only the toolbar in SwiftUI with no success.

I have tried doing UIToolbar.appearance().barTintColor = UIColor.red and that was supposed to change the color but that didn't do anything.

  • Does this answer your question? [SwiftUI changing navigation bar background color for inline navigationBarTitleDisplayMode](https://stackoverflow.com/questions/69196530/swiftui-changing-navigation-bar-background-color-for-inline-navigationbartitledi) – Yrb Apr 01 '22 at 23:27
  • That adds the color to the navigation bar and the toolbar, but I want it to be only the toolbar, as it conflicts with another view in my app. – The Cool Man Apr 02 '22 at 15:26

0 Answers0