Merge pull request #670 from pcqpcq/master

fix(iOS): missing implementation of method zoomBy
This commit is contained in:
Lorenzo Pichilli 2021-02-07 16:10:33 +01:00 committed by GitHub
commit 048f8f5ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)