//// FlutterWebViewFactory.swift// flutter_inappbrowser//// Created by Lorenzo on 13/11/18.//importFlutterimportFoundationpublicclassFlutterWebViewFactory:NSObject,FlutterPlatformViewFactory{privateweakvarregistrar:FlutterPluginRegistrar?init(registrar:FlutterPluginRegistrar?){super.init()self.registrar=registrar}publicfunccreateArgsCodec()->FlutterMessageCodec&NSObjectProtocol{returnFlutterStandardMessageCodec.sharedInstance()}publicfunccreate(withFrameframe:CGRect,viewIdentifierviewId:Int64,argumentsargs:Any?)->FlutterPlatformView{letarguments=argsas?NSDictionaryletwebviewController=FlutterWebViewController(registrar:registrar!,withFrame:frame,viewIdentifier:viewId,arguments:arguments!)returnwebviewController}}