Instance Method

view(_:shouldRenderAtTime:)

Specifies whether the view should render at the given time.

Declaration

optional func view(_ view: SKView, shouldRenderAtTime time: TimeInterval) -> Bool

Parameters

view

The SKView.

time

The target time.

Return Value

Return true to initiate an update and render for the target time. Return false to skip the update and render for the target time.