Tetris/Tetris Mac/AppDelegate.swift

29 lines
637 B
Swift
Raw Normal View History

2019-10-16 23:57:56 +00:00
//
// AppDelegate.swift
// Tetris Mac
//
// Created by Shadowfacts on 10/16/19.
// Copyright © 2019 Shadowfacts. All rights reserved.
//
import Cocoa
import SwiftUI
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
var window: NSWindow!
func applicationDidFinishLaunching(_ aNotification: Notification) {
// Create the window and set the content view.
2020-04-05 18:57:06 +00:00
window = TetrisWindow()
2019-10-16 23:57:56 +00:00
window.center()
window.makeKeyAndOrderFront(nil)
}
func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}
}