How to make links within a label text be available for voice over (accessibility)? (iOS, Xamarin)
The best solution so far for this problem is to use UIAccessibilityCustomAction as @Junior Jiang mentioned on one of the comments.
Rotors are definitely not the solution. However, rotors can be used for UITextView as they have UITextRange property which can be used to navigate throughout the text.
Custom actions are much simpler to use than rotors and they work at the label level.
Accessibility: Voice over read update label?
If the question you're asking is, "How do I alert the user to a change in content," you can choose among three solutions.
- Post
UIAccessibilityNotification(UIAccessibilityLayoutChangedNotification, label)
to notify the system that the content has changed and force focus to the label. - Post
UIAccessibilityNotification(UIAccessibilityAnnouncementNotification, "Your announcement")
to request that the system communicate the string to the user. - Assign the
UIAccessibilityTraitUpdatesFrequently
trait to your label. The system will periodically announce changes to the content.
iOS Voice over, how to skip a tableview cell rather than speak not enabled
A UITableViewCell
may be seen as a container inside which many elements are embedded (buttons...) and, as is, you can't have simultaneously a parent view (the table view cell) and its child views (label, button...) that are both accessible with VoiceOver: either your cell can be selected or its content.
In your case, you don't want the cell itself or its content to be read out by the screen reader so you must specify:
- yourCell.isAccessibilityElement = false
- yourCell.accessibilityElementsHidden = false
Following this rationale, you skip a tableview cell rather than speak “not enabled”.
Related Topics
Supporting Multiple Screen Sizes in Storyboards (3.5 and 4 Inch Screens)
Retrieving Data Using Firebase Swift
Fairplay Streaming: Calling Copypixelbufferforitemtime on Avplayeritemvideooutput Returns Null
How to Change Color of Text Strings Inside Uitextview in Swift3
Calculating the Broadcast Address in Objective-C
Expected Declaration Error Creating Array in Viewcontroller, Can't Work Out Why
How to Expose Existing Property on Obj-C Class Using an Extension Protocol in Swift
Xcode No Valid Compiled Storyboard at Path
Access Iphone's Built-In Ringtones
Uisearchbar's Cancel and Clear Buttons Not Working in iOS 7
Nsstrikethroughstyleattributename , How to Strike Out the String in iOS 10.3
Swift - "Use of Unresolved Identifier"
Swiftui: Animation Inside Navigationview
How to Access an Iboutlet from Another Class
Swiftui Won't Display Custom Font
Get Cellid, Mcc, Mnc, Lac, Signal Strength, Quality and Network in iOS 8.3