foregroundActive

&&

$0

is

UIWindowScene

})

as?

UIWindowScene

let

window

windowScene

windows

first

where

isKeyWindow

),

let

rootViewController

window

rootViewController

else

return

// Create the FlutterViewController without an existing FlutterEngine.

let

flutterViewController

FlutterViewController

project

nil

nibName

nil

bundle

nil

flutterViewController

modalPresentationStyle

overCurrentContext

flutterViewController