Contents

textViewportLayoutController(_:cacheRenderingSurface:for:)

Asks the delegate to cache a rendering surface for later retrieval.

Declaration

optional func textViewportLayoutController(_ textViewportLayoutController: NSTextViewportLayoutController, cacheRenderingSurface renderingSurface: any NSTextViewportRenderingSurface, for renderingSurfaceKey: any NSTextViewportRenderingSurfaceKey)

Parameters

  • textViewportLayoutController:

    The viewport layout controller.

  • renderingSurface:

    The rendering surface to cache.

  • renderingSurfaceKey:

    The key identifying the rendering surface.

See Also

Storing rendering surfaces