Scene

class Scene

A scene contains a layer hierarchy which is animated over time.

  • id

    The scene’s unique identifier.

    Declaration

    var id: String { get }
  • The scene’s name.

    Declaration

    var name: String { get }
  • Original size of the scene when it was first created.

    Declaration

    var size: Size { get }
  • Root layer of the scene’s layer hierarchy.

    Declaration

    var rootLayer: Layer { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Scene) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.