Update InAppWebViewMethodHandler.swift

This commit is contained in:
Lorenzo Pichilli 2022-04-17 17:17:11 +02:00 committed by GitHub
parent 8c8c4f4675
commit 23edf4054f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ public class InAppWebViewMethodHandler: FlutterMethodCallDelegate {
break
case "zoomBy":
let zoomFactor = (arguments!["zoomFactor"] as! NSNumber).floatValue
let animated = arguments!["iosAnimated"] as! Bool
let animated = arguments!["animated"] as! Bool
webView?.zoomBy(zoomFactor: zoomFactor, animated: animated)
result(true)
break