Accessibility
The purpose of this library is to provide a unified way for accessibility features on Android on iOS.
All accessibility methods are available through the Accessibility class. Additionally, an accessibility property is added to all classes which inherit from UIView and UIViewController.
Example:
Providing an accessibility label:
- on Android you would set
contentDescription - on iOS you would set
accessibilityLabel
With this library you can can use accessibility.label on Android and iOS. The library calls the native methods.
Features
- UIView
label: set the accessibility labelaction: set the accessibility action to announceelements: set the order of accessibility elementsfocus(): moves the accessibility focus to this view
- UIViewController
elements: set the order of accessibility elementsannounce(message): announces the provided message
Requirements
Minimum supported iOS version is 12.0
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
Installation
Accessibility is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Accessibility'The module has been renamed to Appt, because iOS 15 uses the Accessibility namespace.
import ApptAuthor
Jan Jaap de Groot, [email protected]
License
Accessibility is available under the MIT license. See the LICENSE file for more info.