languages

A collection of programs made with different programming languages.
git clone git://evanalba.com/languages
Log | Files | Refs

MainFlutterWindow.swift (388B)


      1 import Cocoa
      2 import FlutterMacOS
      3 
      4 class MainFlutterWindow: NSWindow {
      5   override func awakeFromNib() {
      6     let flutterViewController = FlutterViewController()
      7     let windowFrame = self.frame
      8     self.contentViewController = flutterViewController
      9     self.setFrame(windowFrame, display: true)
     10 
     11     RegisterGeneratedPlugins(registry: flutterViewController)
     12 
     13     super.awakeFromNib()
     14   }
     15 }