accessibilityCustomText doesn't exist in UIKit, exists in AppKit

Originator:me
Number:rdar://39469685 Date Originated:14/16/2018
Status:Open Resolved:
Product:iOS + SDK Product Version:11.0
Classification:Accessibility Reproducible:Always
 
In AppKit an application can specify custom accessibility text on an NSAttributedString to override the text that would typically be used (such as for Voice Over).

In UIKit, or the iOS SDKs, there is no equivalent functionality, therefore there is no way for custom accessibility text to be provided.

An instance in which this would make sense:

- Add a UITextField to an iOS app
- Set UITextField's keyboardType = .numberPad
- Run the app and navigate to UITextField
- Enable Voice Over
- Input a Zip Code (e.g. 94105)
- Voice Over reads phone number as "Ninety Four Thousand One Hundred and Five" instead of reading individual digits "Nine For One Zero Five".
- There is no way to override this custom value to ensure Voice Over reads the number as a number and not as a word.

See for more information https://developer.apple.com/documentation/foundation/nsattributedstringkey/2870144-accessibilitycustomtext

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!