Files
DesktopGoose2/DesktopDuck/AppDelegate.swift
T
2026-10-17 00:35:34 +01:00

33 lines
793 B
Swift

//
// AppDelegate.swift
// DesktopDuck
//
// Created by neon443 on 11/09/2025.
//
import Cocoa
@main
class AppDelegate: NSObject, NSApplicationDelegate {
var gooseWindow: GooseWindow?
func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
// let window = NSWindow(contentRect: NSScreen.main!.frame, styleMask: .borderless, backing: .buffered, defer: false)
// window.backgroundColor = .init(srgbRed: 1, green: 1, blue: 1, alpha: 0.1)
// window.orderFront(nil)
gooseWindow = GooseWindow()
}
func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}
func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
}