flutter/dev/integration_tests/ui/macos/Runner/MainFlutterWindow.swift
Jonah Williams 721ce7aa6e
add macOS to ui integration test (#56324)
This is required to run the macOS twc enabled devicelab test.
2020-05-04 15:55:33 -07:00

20 lines
558 B
Swift

// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
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()
}
}