diff --git a/ios/Classes/InAppWebViewMethodHandler.swift b/ios/Classes/InAppWebViewMethodHandler.swift index 3ac6e562..51b8842b 100644 --- a/ios/Classes/InAppWebViewMethodHandler.swift +++ b/ios/Classes/InAppWebViewMethodHandler.swift @@ -269,6 +269,11 @@ class InAppWebViewMethodHandler: FlutterMethodCallDelegate { case "getContentHeight": result(webView?.getContentHeight()) break + case "zoomBy": + let zoomFactor = arguments!["zoomFactor"] as! Float + webView?.zoomBy(zoomFactor: zoomFactor) + result(true) + break case "reloadFromOrigin": webView?.reloadFromOrigin() result(true)