openshock-android/macos/Runner/MainFlutterWindow.swift
Mercurio 7dba350a7d Initial build
bad code n such
2023-11-09 19:23:46 +01:00

16 lines
388 B
Swift

import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}