1
0
mirror of https://github.com/git-touch/git-touch synced 2025-01-18 18:29:59 +01:00
git-touch-android-ios-app/macos/Runner/MainFlutterWindow.swift
Shreyas Thirumalai acd608e230
add macos files (#90)
#69
2020-05-15 18:37:12 +08:00

16 lines
393 B
Swift

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()
}
}