Specifies whether the view should render at the given time.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
Framework
- Sprite
Kit
Declaration
optional func view(_ view: SKView, shouldRenderAtTime time: Time Interval) -> 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.