Contents

textLayoutFragment(for:)

Returns the text layout fragment at the position you specify in the text container.

Declaration

func textLayoutFragment(for position: CGPoint) -> NSTextLayoutFragment?

Parameters

  • position:

    A Cgpoint that describes the position in the coordinate system for the text container.

Return Value

An NSTextLayoutFragment.

See Also

Causing layout generation