Merge pull request #670 from pcqpcq/master
fix(iOS): missing implementation of method zoomBy
This commit is contained in:
commit
048f8f5ead
|
@ -269,6 +269,11 @@ class InAppWebViewMethodHandler: FlutterMethodCallDelegate {
|
||||||
case "getContentHeight":
|
case "getContentHeight":
|
||||||
result(webView?.getContentHeight())
|
result(webView?.getContentHeight())
|
||||||
break
|
break
|
||||||
|
case "zoomBy":
|
||||||
|
let zoomFactor = arguments!["zoomFactor"] as! Float
|
||||||
|
webView?.zoomBy(zoomFactor: zoomFactor)
|
||||||
|
result(true)
|
||||||
|
break
|
||||||
case "reloadFromOrigin":
|
case "reloadFromOrigin":
|
||||||
webView?.reloadFromOrigin()
|
webView?.reloadFromOrigin()
|
||||||
result(true)
|
result(true)
|
||||||
|
|
Loading…
Reference in New Issue