Contents

textViewportLayoutController(_:retrieveCachedRenderingSurfaceFor:)

Asks the delegate to return a previously cached rendering surface.

Declaration

optional func textViewportLayoutController(_ textViewportLayoutController: NSTextViewportLayoutController, retrieveCachedRenderingSurfaceFor renderingSurfaceKey: any NSTextViewportRenderingSurfaceKey) -> any NSTextViewportRenderingSurface

Parameters

  • textViewportLayoutController:

    The viewport layout controller.

  • renderingSurfaceKey:

    The key identifying the rendering surface.

Return Value

The cached rendering surface, or nil.

See Also

Storing rendering surfaces