register

factory

withId

"<platform-view-type>"

Add the headers for the factory and the platform view.
For example, FLNativeView.h:

#import <Flutter/Flutter.h>

@interface

FLNativeViewFactory

NSObject

FlutterPlatformViewFactory

instancetype

initWithMessenger

:(

NSObject

FlutterBinaryMessenger

>*

messenger

@end

@interface

FLNativeView

NSObject

FlutterPlatformView

instancetype

initWithFrame

:(

CGRect

frame

viewIdentifier

:(