Subclass your NSWindow Controller, then in Window Did Load add the following two lines: //Signature Color window?.titlebarAppearsTransparent = true window?.backgroundColor = NSColor.blue That’s it, here’s the result you’ll get: Comments / questions? I’m at @MarcMasVi Marc
Tag Archives: NSWindowController
NSWindow min and max size (Swift 4)
You can force the views to keep a inferred min and max width/height by using AutoLayout, but what if you’re working with several views simultaneously? Wouldn’t it be simpler to have a window min and max width/height? Just add the following in your NSWindowController: override func windowDidLoad() { super.windowDidLoad() …