accessibilityAttributedContent(forLineNumber:)
Returns the styled text associated with the specified line number.
Declaration
@MainActor optional func accessibilityAttributedContent(forLineNumber lineNumber: Int) -> NSAttributedString?Parameters
- lineNumber:
A line number in the receiver’s content.
Return Value
An attributed 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 this method before calling the accessibilityContent(forLineNumber:) method.