0

I have simple question, what I can't find answer on google. How to make window of macOS Cocoa application dark? Is it able with XCode without coding or I must write Objective-C to do this. Image here.

1 Answers1

0

Answered here

First add this code to viewDidLoad:

self.window?.titlebarAppearsTransparent = true

And then place Visual Effect View on entire window and in window settings check Full Size Content View

TIP: To hide title of form use this code:

self.window.titleVisibility = NSWindowTitleVisibility.Hidden;

And Result: enter image description here

Community
  • 1
  • 1
Samuel Tulach
  • 1,319
  • 13
  • 38