Contents

CMTIME_IS_POSITIVEINFINITY(_:)

Returns a Boolean value that indicates whether a given time is positive infinity.

Declaration

func CMTIME_IS_POSITIVEINFINITY(_ time: CMTime) -> Bool

Parameters

  • time:

    A time value to test.

Return Value

true if the time represents positive infinity; otherwise, false.

Discussion

Use this macro instead of testing if a time is equal to positiveInfinity, because there are many times that represent positive infinity. This is because the system ignores nonflags fields, so they can contain anything.

See Also

Inspecting a Time