Instance Method

draw(in:)

Draws the view’s contents.

Required.

Declaration

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.