mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
Closes #4290 Add accessibility document for MDCSlider. Tried to match UISlider as closely as possible for `accessibilityActivate`.
23 lines
626 B
Markdown
23 lines
626 B
Markdown
### Differences from UISlider
|
|
|
|
Does not have api to:
|
|
|
|
- set right and left icons
|
|
- set the thumb image
|
|
- set the right and left track images (for a custom track)
|
|
- set the right (background track) color
|
|
|
|
Same features:
|
|
|
|
- set color for thumb via @c thumbColor
|
|
- set color of track via @c trackColor
|
|
|
|
New features:
|
|
|
|
- making the slider a snap to discrete values via property numberOfDiscreteValues
|
|
|
|
#### `-accessibilityActivate`
|
|
|
|
Our implementation closely resembles what UISlider does but it's not an exact match. On an
|
|
`accessibilityActivate` we move one sixth of the amount between the current value and the midpoint value.
|