textViewportLayoutController(_:retrieveCachedRenderingSurfaceFor:)
Asks the delegate to return a previously cached rendering surface.
Declaration
optional func textViewportLayoutController(_ textViewportLayoutController: NSTextViewportLayoutController, retrieveCachedRenderingSurfaceFor renderingSurfaceKey: any NSTextViewportRenderingSurfaceKey) -> any NSTextViewportRenderingSurfaceParameters
- textViewportLayoutController:
The viewport layout controller.
- renderingSurfaceKey:
The key identifying the rendering surface.
Return Value
The cached rendering surface, or nil.