Contents

fade(with:duration:)

Creates a transition that first fades to a constant color and then fades to the new scene.

Declaration

class func fade(with color: UIColor, duration sec: TimeInterval) -> SKTransition
class func fade(with color: NSColor, duration sec: TimeInterval) -> SKTransition

Parameters

  • color:

    The color to use as the fade color.

  • sec:

    The duration of the transition.

Return Value

A new transition.

See Also

Creating Transitions