Contents

accessibilityContent(forLineNumber:)

Returns the text associated with the specified line number.

Declaration

@MainActor func accessibilityContent(forLineNumber lineNumber: Int) -> String?

Parameters

  • lineNumber:

    A line number in the receiver’s content.

Return Value

A string containing the text that is associated with the specified line number, or nil if the line number is invalid. By default, this function returns nil.

Discussion

The system tries to call the accessibilityAttributedContent(forLineNumber:) method before calling this method.

See Also

Accessing the content on a page