Contents

draw(in:)

Draws the view’s contents.

Declaration

@MainActor func draw(in view: MTKView)

Parameters

  • view:

    The view requesting that its contents be redrawn.

Discussion

This method is called on the delegate when it is asked to render into the view.