launchOptions

);

In this example, we create a FlutterEngine 
object inside a SwiftUI ObservableObject. 
We then pass this FlutterEngine into a 
ContentView using the environmentObject() property.

In AppDelegate.h:

@import

UIKit

@import

Flutter

@interface

AppDelegate

FlutterAppDelegate

// More on the FlutterAppDelegate below.

@property

nonatomic

strong

FlutterEngine

flutterEngine

@end

In AppDelegate.m:

// The following library connects plugins with iOS platform code to this app.

#import <FlutterPluginRegistrant/GeneratedPluginRegistrant.h>

#import "AppDelegate.h"

@implementation