accessibilityScrollStatus(for:)
Returns a string describing the content at the current offset in the scroll view.
Declaration
optional func accessibilityScrollStatus(for scrollView: UIScrollView) -> String?Parameters
- scrollView:
The scroll view containing the content.
Return Value
A custom status string for the current offset.
Discussion
For example, in a user interface that scrolls through the books in a bookcase, you could return “Books 10 through 20”. By default, VoiceOver announces “Page X of Y” while scrolling.
Use the accessibilityAttributedScrollStatus(for:) method if portions of your string should be spoken in a different language.