This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
skyforce-app/macos/Runner/MainFlutterWindow.swift

16 lines
388 B
Swift
Raw Permalink Normal View History

2023-08-06 10:35:40 +02:00
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()
}
}