mirror of https://github.com/flutter/samples.git
16 lines
571 B
16 lines
571 B
// Copyright 2019 The Flutter team. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import UIKit
|
|
import Flutter
|
|
|
|
class ViewController: UIViewController {
|
|
@IBAction func buttonWasTapped(_ sender: Any) {
|
|
let flutterEngine = (UIApplication.shared.delegate as? AppDelegate)?.flutterEngine
|
|
let flutterViewController = FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil)!
|
|
self.present(flutterViewController, animated: false, completion: nil)
|
|
}
|
|
}
|
|
|