CTLineEnumerateCaretOffsets(_:_:)
Enumerates caret offsets for characters in a line.
Declaration
func CTLineEnumerateCaretOffsets(_ line: CTLine, _ block: @escaping (Double, CFIndex, Bool, UnsafeMutablePointer<Bool>) -> Void)Parameters
- line:
The line to enumerate.
- block:
The block to invoke once for each logical caret edge in the line, in left-to-right visual order. The block’s
offsetparameter is relative to the line origin. The block’sleadingEdgeparameter specifies logical order.