registerWithRegistry

self

flutterEngine

];

return

super

application

application

didFinishLaunchingWithOptions

launchOptions

];

@end

Show a FlutterViewController with your FlutterEngine

SwiftUI

UIKit-Swift

UIKit-ObjC

FlutterViewController.
The

import

SwiftUI

import

Flutter

struct

ContentView

View

// Flutter dependencies are passed in an EnvironmentObject.

@EnvironmentObject

var

flutterDependencies

FlutterDependencies

// Button is created to call the showFlutter function when pressed.

var