// // KMHomeWindowController.swift // PDF Master // // Created by lxy on 2022/10/10. // import Cocoa class KMHomeWindowController: NSWindowController { var homeViewController : KMHomeViewController! override func windowDidLoad() { super.windowDidLoad() self.window!.isMovableByWindowBackground = true self.window!.isOpaque = false self.window!.backgroundColor = NSColor.white self.window!.standardWindowButton(.miniaturizeButton)!.isHidden = false self.window!.standardWindowButton(.zoomButton)!.isHidden = false self.homeViewController = KMHomeViewController.init() self.window!.contentView!.addSubview(self.homeViewController.view) } }