1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-31 08:04:51 +01:00
git-touch-android-ios-app/macos/Runner/MainFlutterWindow.swift

16 lines
393 B
Swift
Raw Normal View History

2020-05-15 16:07:12 +05:30
import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}