diff --git a/ios/Classes/InAppWebViewMethodHandler.swift b/ios/Classes/InAppWebViewMethodHandler.swift index 58092f63..b8ec2723 100644 --- a/ios/Classes/InAppWebViewMethodHandler.swift +++ b/ios/Classes/InAppWebViewMethodHandler.swift @@ -289,7 +289,7 @@ public class InAppWebViewMethodHandler: FlutterMethodCallDelegate { result(webView?.getContentHeight()) break case "zoomBy": - let zoomFactor = arguments!["zoomFactor"] as! Float + let zoomFactor = (arguments!["zoomFactor"] as! NSNumber).floatValue let animated = arguments!["iosAnimated"] as! Bool webView?.zoomBy(zoomFactor: zoomFactor, animated: animated) result(true)