ViewportStatus
@_spi(Experimental)
public enum ViewportStatus : Hashable
ViewportStatus
contains 3 cases that express what the Viewport
is doing at any given time.
The state(_:)
and transition(_:toState:)
cases have associated values that are reference types, so equality and hash are implemented in terms of
the identities of those objects.
-
The
idle
status indicates thatViewport
is inactive.Declaration
Swift
case idle
-
The
state(_:)
status indicates thatViewport
is running the associated valuestate
.Declaration
Swift
case state(_: ViewportState)
-
The
transition(_:toState:)
status indicates thatViewport
is runningtransition
and will start runningtoState
upon success.Declaration
Swift
case transition(_: ViewportTransition, toState: ViewportState)
-
Compares two
ViewportStatus
values. Returnstrue
if and only if they are the same case and any associated values are identical.Declaration
Swift
public static func == (lhs: ViewportStatus, rhs: ViewportStatus) -> Bool
-
Combines the
ObjectIdentifier
of each associated value intohasher
.Declaration
Swift
public func hash(into hasher: inout Hasher)