Contents

viewportBounds(for:)

Returns the current viewport, which is the view visible bounds plus the overdraw area.

Declaration

func viewportBounds(for textViewportLayoutController: NSTextViewportLayoutController) -> CGRect

Parameters

Return Value

A CGRect.

See Also

Responding to changes in the viewport