1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00
vimr/Tabs/Support/TabsSupport/AppDelegate.swift
2020-11-28 11:38:14 +01:00

36 lines
814 B
Swift

//
// AppDelegate.swift
// TabsSupport
//
// Created by Tae Won Ha on 22.11.20.
//
import Cocoa
import PureLayout
import Tabs
@main
class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet var window: NSWindow!
override init() {
self.tabBar = TabBar()
super.init()
}
func applicationDidFinishLaunching(_: Notification) {
let contentView = self.window.contentView!
contentView.addSubview(self.tabBar)
self.tabBar.autoPinEdge(toSuperviewEdge: .top)
self.tabBar.autoPinEdge(toSuperviewEdge: .left)
self.tabBar.autoPinEdge(toSuperviewEdge: .right)
self.tabBar.autoSetDimension(.height, toSize: Dimensions.tabBarHeight)
}
func applicationWillTerminate(_: Notification) {
// Insert code here to tear down your application
}
private let tabBar: TabBar
}