flutterViewController

splashScreenView

// compilation error: Value of optional type 'UIView?' must be unwrapped to a value of type 'UIView'

Code after migration:

var

splashScreenView

UIView

UIView

()

var

flutterEngine

FlutterEngine

name

"my flutter engine"

let

flutterViewController

FlutterViewController

engine

flutterEngine

nibName

nil

bundle

nil

let

splashScreenView

flutterViewController

splashScreenView

// compiles successfully

if

let

splashScreenView

splashScreenView