fix(iOS): missing implementation of method zoomBy

This commit is contained in:
pancq 2021-02-07 15:54:40 +08:00
parent 9b3ea1c6a2
commit b0d3b82ca6
1 changed files with 5 additions and 0 deletions

View File

@ -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)