uiaccessibility

iOS voiceover for custom view displayed over uiviewcontroller

*爱你&永不变心* 提交于 2021-01-29 07:52:07
问题 I have a UIViewController let's call it MainViewController, a child controller instance (ChildViewController of type UITableViewController) is added to MainViewController the accessibility of the ChildViewController is set and voiceover works fine for the same. MainViewController has a toolbar button, on tap a custom view will be displayed as shown below //CustomView class func show() { UIView.animate(withDuration:0.5, delay: 0.0, usingSpringWithDamping: 0.8, initialSpringVelocity: 5, options

stop voice over from saying the automatic hint for UIAccessibilityTrait adjustable (swift)

☆樱花仙子☆ 提交于 2021-01-27 20:09:38
问题 When having an element on screen that has the UIAccessibilityTrait .adjustable , Voice Over reads out the automatic hint provided by iOS, saying "swipe up or down with one finger to adjust the value". How do I stop iOS from saying that hint? I want voice over to only read my own accessibility hint. 回答1: How do I stop iOS from saying that hint? When you use an accessibility element whose trait is .adjustable , the system will automatically read out its hint and it's not possible to remove only

Default UIAccessibilityElement after screen change

倾然丶 夕夏残阳落幕 提交于 2021-01-27 18:20:25
问题 Any way to decide which element gets focus first? I tried use the second parameter in the UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, element); but with no success. 回答1: Using the UIAccessibilityPostNotification method is the proper way to get your purpose. There are several types of change notifications but the two most commonly used are : UIAccessibilityLayoutChangedNotification : notifies that a part of the page has changed with 2 possible incoming parameters

Why is UIAccessibility.post(notification: .announcement, argument: “arg”) not announced in voice over?

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-29 06:26:46
问题 When using Voice Over in iOS, calling UIAccessibility.post(notification:argument:) to announce a field error doesn't actually announce the error. I have a submit button and, when focusing the button, voice over reads the button title as you would expect. When pressing the button, voice over reads the title again. When the submit button is pressed, I am doing some validation and, when there is a field error, I am trying to announce it by calling: if UIAccessibility.isVoiceOverRunning {

Making dynamically updating content in a UITableView accessible for VoiceOver

谁都会走 提交于 2020-06-16 02:20:07
问题 I'm trying to make my app more accessible and so far the standard accessibility things like labels and hints are doing wonders. I'm hitting a problem however with dynamically updating content that's displayed in a UITableView. Each row of the table updates every second or so, but if I try to create each cell's accessibilityLabel at this point then I find that there is a problem with the VoiceOver reading out the selected label keeps interrupting itself as the label contents changes so the

Showing / hiding accessibility elements in an overflow menu when opening a custom UITableViewCell

こ雲淡風輕ζ 提交于 2020-05-15 07:01:06
问题 I’m implementing accessibility in a custom UITableViewCell class. I have a fairly simple overflow menu with a couple of buttons inside it, which are hidden until an ellipsis button is pushed that slides open and closes the overflow. In my cell's initialiser I’m setting the accessibilityElementsHidden of my overflowContainer to YES . This seems to work, when scrolling through using VoiceOver, those views are skipped. Then, when opening the cell, in the completion handler of the UIView

Why isn't UIAccessibilityNotification not moving to correct argument?

£可爱£侵袭症+ 提交于 2020-02-16 05:25:52
问题 I have a UISwitch inside tableviewcell. The toggle makes a network request. A UIActivityIndicator replaces the switch until the response completes. So the UX flow is as such: off --> loader --> on Before the label is tapped the accessibility reads as such: label - value - hint ‘streaming - switch button off - double tap to toggle switch’ My code is as such: @IBAction func switchToggled(_ sender: Any) { toggle.isHidden = true activityIndicatorView.startAnimating() UIAccessibility.post

Why isn't UIAccessibilityNotification not moving to correct argument?

主宰稳场 提交于 2020-02-16 05:24:30
问题 I have a UISwitch inside tableviewcell. The toggle makes a network request. A UIActivityIndicator replaces the switch until the response completes. So the UX flow is as such: off --> loader --> on Before the label is tapped the accessibility reads as such: label - value - hint ‘streaming - switch button off - double tap to toggle switch’ My code is as such: @IBAction func switchToggled(_ sender: Any) { toggle.isHidden = true activityIndicatorView.startAnimating() UIAccessibility.post

why UIAccessibilityIsGuidedAccessEnabled() always return NO?

拥有回忆 提交于 2020-02-08 03:03:46
问题 In my app, for default behaviour the method UIAccessibilityIsGuidedAccessEnabled() return NO, and that OK. Unfortunately, even when i changed in Settings > Accessibility > Guided Access > Guided Access to YES, it's still return NO. Why is that ? 回答1: You have not "enabled" it yet. I know it sounds odd, but your app doesn't know about it until you triple tap the home button and start it for your app. Configuring it is not enough. They should have probably had two states, enabled (configured)

UIAccessibility default language throughout the app

不想你离开。 提交于 2020-01-13 11:21:09
问题 We're working on an app that's localized only in the German language and want to add accessibility feature to it. Since the accessibilityLabel s are in German, it would be great to always read it in German, regardless of what the user's default system language is. I noticed one can set that with the accessibilityLanguage property. But it needs to be set on each control repeatedly. Is there any way to set the accessibility language once globally for every control in the app? 回答1: Just found