Contents

relocateViewport(to:)

Relocates the viewport to the location you specify.

Declaration

func relocateViewport(to textLocation: any NSTextLocation) -> CGFloat

Parameters

  • textLocation:

    An NSTextLocation.

See Also

Accessing the viewport characteristics