title: Making the title bar of a window completely transparent
body: <p>i'm working on an macos app in Swift 3, where I'd like to make the title bar transparent, and not show the title of my app, so basically, just the 3 buttons (close, minify, fullscreen) on my background.</p>
  <p>What I tried is to put the following in the <code>viewDidLoad</code> method of the first view controller that is being used:</p>
  <pre><code>self.view.window?.styleMask.insert(NSWindowStyleMask.unifiedTitleAndToolbar)
  self.view.window?.styleMask.insert(NSWindowStyleMask.fullSizeContentView)
  self.view.window?.styleMask.insert(NSWindowStyleMask.titled)
  self.view.window?.toolbar?.isVisible = false
  self.view.window?.titleVisibility = .hidden
  self.view.window?.titlebarAppearsTransparent = true
  </code></pre>
  <p>but what I end up with is this:</p>
  <p><a href="https://i.stack.imgur.com/z7mGb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z7mGb.png" alt="enter image description here" /></a></p>
  <p>it seems like the title bar has got a lower opacity then normal, but I'd like it (and the app title) gone completely.</p>
  <p>Am I missing something or is this impossible?</p>
  <p>Thanks.</p>