mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
802 B
802 B
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
slider.accessibilityLabel = "Volume level"
Objective - C
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. 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.