blob: 2c7be2117f7f581614a37d19ea0404fd410be3fa [file] [log] [blame] [view] [edit]
## Accessibility
To help ensure your slider is accessible to as many users as possible, please be sure to review the following recommendations:
### `-accessibilityLabel`
Set an appropriate `accessibilityLabel` value for your slider. This should reflect what the slider affects.
#### Swift
```swift
slider.accessibilityLabel = "Volume level"
```
#### Objective - C
```objc
slider.accessibilityLabel = @"Volume level";
```
### Minimum touch size
Sliders currently respect the minimum touch size recomended by the Material spec [touch areas should be
at least 48 points high and 48 wide](https://material.io/design/layout/spacing-methods.html#touch-click-targets).
The height of the slider is set to 27 points so make sure there is sufficient space so that touches don't affect other
elements.