Hi,
just started developing a webview app for ios using the WKWebView, using xcode v12, im having a difficult time implementing the z gesture to go back for voiceover users, can anyone help?
Here is the code snippet as of yet
override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(webView)
guard let url = URL(string: "https://sindhisystems.co.uk") else {
return
}
webView.load(URLRequest(url: url))
webView.customUserAgent = "iPad/Chrome/SomethingRandom"
webView.allowBackForwardNavigationGestures = true
DispatchQueue.main.asyncAfter(deadline: .now()+5) {
self.webView.evaluateJavaScript("document.body.innerHTML") {
result, error in
guard let html = result as? String, error == nil else {
return
}
all the gestures work with vocieover on except for the z scrub or the two finger scrub from left to right to go back to a previous page, more commonly known as the escape gesture
Would anyone know how to fix this?