Contents

viewportBounds(for:)

NSTextViewportLayoutControllerDelegate method that the framework calls to request the current viewport, which is the view visible bounds plus the overdraw area. Requires a call to super.

Declaration

func viewportBounds(for textViewportLayoutController: NSTextViewportLayoutController) -> CGRect

Mentioned in

See Also

Customizing viewport layout