// // MainWindowController.swift // PDF Master // // Created by lxy on 2022/10/10. // import Cocoa @objcMembers class MainWindowController: NSWindowController { var mainViewController : KMMainViewController! override func windowDidLoad() { super.windowDidLoad() mainViewController = KMMainViewController.init() self.window!.contentView!.addSubview(mainViewController.view) if #available(macOS 11.0, *) { self.window?.toolbarStyle = .expanded } } }