isKeyWindow

),

let

rootViewController

window

rootViewController

else

return

// Create the FlutterViewController.

let

flutterViewController

FlutterViewController

// Access the Flutter Engine via AppDelegate.

engine

appDelegate

flutterEngine

nibName

nil

bundle

nil

flutterViewController

modalPresentationStyle

overCurrentContext

flutterViewController

isViewOpaque

false

rootViewController

present

flutterViewController

animated

true

If you can’t directly make FlutterAppDelegate a subclass