draw()
Redraws the view’s contents immediately.
Declaration
func draw()Discussion
This method manually tells the view to redraw its contents. Calling this method causes the view to call either the draw(in:) method of the view’s delegate, or the draw(_:) method of the MTKView subclass. Never call this method inside either drawing function.