0

There is a requirement to change the colour of the tool bar item to red in colour for the NSWindow.

Any suggestion to do so. We use Swift code.

  • Possible duplicate of [Changing the background color of the unified NSToolbar (in Yosemite)](https://stackoverflow.com/questions/29952202/changing-the-background-color-of-the-unified-nstoolbar-in-yosemite) – Tamás Sengel Sep 15 '17 at 10:52

1 Answers1

-3

In order to change the background color of the toolbar do the following:

self.toolbar.isTranslucent = false

self.toolbar.barTintColor = UIColor.red
Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
Tharak
  • 1