Instance Method

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 is 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 accessibilitySpeechLanguage.

See Also

Providing Descriptive Information

func accessibilityScrollStatus(for: UIScrollView) -> String?

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software