Accessibility
is a function that applies accessibility to your component.
See how the structure is represented:
Attribute | Type | Required | Definition |
---|---|---|---|
self | StyleComponent | ✓ | Component the receive the accessibility properties. |
accessible | Boolean | ✓ | Indicates whether the component will be interpreted as accessible. Default is true . |
accessibilityLabel | String | Contains a message that will be spoken by programs like VoiceOver. | |
isHeader | Boolean | Indicates whether the component is a header. Default is false . |
Accessibility(
self = Text("simple text"),
accessibilityLabel = "text"
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.