Contents

accessibilityAttributedScrollStatus(for:)

Returns an attributed string describing the content at the current offset in the scroll view.

Declaration

optional func accessibilityAttributedScrollStatus(for scrollView: UIScrollView) -> NSAttributedString?

Parameters

  • scrollView:

    The scroll view containing the content.

Return Value

An attributed string describing the content.

Discussion

Your implementation of this method returns a description of the content that’s currently visible in the scroll view. Use this method (instead of the accessibilityScrollStatus(for:) method) when you want to include attributes that specify which language to use when speaking the text. For more information, see UIAccessibilitySpeechAttributeLanguage.

See Also

Providing descriptive information