Questions tagged [uiaccessibility-notification]
12 questions
49
votes
4 answers
iOS change accessibility focus
Is there a way to set the accessibility focus programatically (App Store safe)? Any help will be greatly appreciated.

John S
- 1,687
- 6
- 21
- 28
46
votes
2 answers
Actual difference between UIAccessibilityLayoutChangedNotification and UIAccessibilityScreenChangedNotification?
I’m trying to ascertain what exactly happens differently when posting a UIAccessibilityLayoutChangedNotification, and a UIAccessibilityScreenChangedNotification. From what I can see, I can use them interchangeably everywhere and nothing different…

Luke
- 9,512
- 15
- 82
- 146
11
votes
1 answer
Post accessibility notification in SwiftUI
I need to move the accessibility focus to certain element on the screen. In UIKit, we can simply do UIAccessibility.post(.screenChanged, element)
However, when I do that with a SwiftUI View, the app crashes with the following message in console
This…

user1366265
- 1,306
- 1
- 17
- 28
2
votes
3 answers
Voiceover has huge pause using UIAccessibilityPostNotification
I am adding accessibility to my iPhone game and make extensive use of UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"string") to announce various things happening in the game. It works well in 99% of time, but I am…

smmelzer
- 230
- 2
- 10
1
vote
1 answer
Why accessibilityElementDidBecomeFocused is not firing for UIBarButtonItem
I'd like to know when BarButton items gets the accessibility focus or loses the accessibility focus and so I implemented the informal protocol methods of UIAccessibilityFocus but it's not still firing.
extension UIBarButtonItem {
override open func…

Durai Amuthan.H
- 31,670
- 10
- 160
- 241
1
vote
0 answers
How do I focus VoiceOver to the target origin in the host ViewController from its presented ViewController?
Scenario:
A host UIViewController containing assorted views, buttons; and navigation bar.
User selects an item which presents a dependent UIViewController.
User eventually dismisses the presented UIViewController.
Goal:
VoiceOver focus must…

Frederick C. Lee
- 9,019
- 17
- 64
- 105
1
vote
1 answer
Why isn't UIAccessibilityNotification not moving to correct argument?
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…

mfaani
- 33,269
- 19
- 164
- 293
1
vote
1 answer
VoiceOver stops announcing UIAccessibilityPostNotification messages
I'm working on an application that is designed to speak some information about the data it captures from video as the video is being captured. Right now I'm using UIAccessibilityPostNotification to get VoiceOver to say what I want it to say with…

Aaron
- 4,634
- 1
- 27
- 43
1
vote
1 answer
UIAccessibilityPostNotification in background
A blind tester of mine suggested the use of simple vocal notifications instead of the full blown ones, totally useless to them and just wasting battery life. So I thought of…

Fabrizio Bartolomucci
- 4,948
- 8
- 43
- 75
0
votes
1 answer
UIAccessibilityPostNotification for TTS - allowed in app?
It appears that one could use UIAccessibilityPostNotification for TTS thus:
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"the sky is now blue");
However, this raises two questions:
1) Is this allowed by app store…

Anders Sewerin Johansen
- 1,578
- 18
- 40
0
votes
2 answers
Accessibility: Voice over read update label?
How to force voice over in Accessibility read my updated label
For example,
var label.text = 1
Then after 2 sec I update label to 2
label.text = 2
But the voice over not interact with 2
any suggest ?

Joey
- 601
- 3
- 10
- 19
0
votes
1 answer
how to observe the events or detect the notification when the iOS system announce over a button or a label when VoiceOver is running?
When VoiceOver is running, I tapped a button, or a label, it will announce something about this button or label.
I want to do something when announcement completed. Is there some notifications to help me observe when the announcement is…

Michael Yuan
- 73
- 1
- 8