Create accessible experiences for watchOS

RSS for tag

Discuss the WWDC21 session Create accessible experiences for watchOS.

Posts under wwdc21-10223 tag

5 Posts

Post

Replies

Boosts

Views

Activity

trouble enabling two finger gesture to go back to previous page on a webview app
I have enabled the following swipe gesture and it works however with voiceover it doesnt respond and doesnt allow the user to go back with the two finger swipe from left to right Heres the code that i have written so far - import UIKit import WebKit class ViewController: UIViewController { let webView: WKWebView = { let prefs = WKWebpagePreferences() prefs.allowsContentJavaScript = true let configuration = WKWebViewConfiguration() configuration.defaultWebpagePreferences = prefs let webView = WKWebView(frame: .zero, configuration: configuration) return webView }() override func viewDidLoad() { super.viewDidLoad() view.addSubview(webView) guard let url = URL(string: "https://sindhisystems.co.uk") else { return } func goBack(_ sender: Any) { webView.goBack() } webView.load(URLRequest(url: url)) webView.customUserAgent = "iPad/Chrome/SomethingRandom" webView.allowsBackForwardNavigationGestures = 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 } print(html) } } } override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() webView.frame = view.bounds } }
0
0
657
Aug ’21
Directly access to hand gestures like clench.. ? (Interface)
Hey everyone, I have a question about hand gestures. Does an app only have access to hand gestures when assistivetouch is activated? Or is there an interface in the documentation, which gives you directly access to the recognition of these hand gestures? Example: Thinking of a game that will be played with hand gestures. The character jumps when the user does a clench and stops when the user clenched twice. Would that be possible or works it only if the assistivetouch is activated and configured?
0
0
751
Jul ’21
AssitiveTouch on Apple Watch
Hello, I would like to know with which models of Apple Watch can you use AssitiveTouch? Thanks, Armand
Replies
1
Boosts
0
Views
943
Activity
Oct ’21
trouble enabling two finger gesture to go back to previous page on a webview app
I have enabled the following swipe gesture and it works however with voiceover it doesnt respond and doesnt allow the user to go back with the two finger swipe from left to right Heres the code that i have written so far - import UIKit import WebKit class ViewController: UIViewController { let webView: WKWebView = { let prefs = WKWebpagePreferences() prefs.allowsContentJavaScript = true let configuration = WKWebViewConfiguration() configuration.defaultWebpagePreferences = prefs let webView = WKWebView(frame: .zero, configuration: configuration) return webView }() override func viewDidLoad() { super.viewDidLoad() view.addSubview(webView) guard let url = URL(string: "https://sindhisystems.co.uk") else { return } func goBack(_ sender: Any) { webView.goBack() } webView.load(URLRequest(url: url)) webView.customUserAgent = "iPad/Chrome/SomethingRandom" webView.allowsBackForwardNavigationGestures = 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 } print(html) } } } override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() webView.frame = view.bounds } }
Replies
0
Boosts
0
Views
657
Activity
Aug ’21
Gesture
Is it possible to add custom gesture to the full keyboard access?
Replies
0
Boosts
0
Views
520
Activity
Aug ’21
Detect if Auto-Answer Calls is enabled
Hi! I am looking for a UIAccessibility or other API to indicate if the Auto-Answer Calls accessibility feature is enabled. Does such an API exist?
Replies
0
Boosts
0
Views
592
Activity
Aug ’21
Directly access to hand gestures like clench.. ? (Interface)
Hey everyone, I have a question about hand gestures. Does an app only have access to hand gestures when assistivetouch is activated? Or is there an interface in the documentation, which gives you directly access to the recognition of these hand gestures? Example: Thinking of a game that will be played with hand gestures. The character jumps when the user does a clench and stops when the user clenched twice. Would that be possible or works it only if the assistivetouch is activated and configured?
Replies
0
Boosts
0
Views
751
Activity
Jul ’21