Contents

status(of:)

Returns a value that indicates the loaded status of a property.

Declaration

func status<T>(of property: AVAsyncProperty<Self, T>) -> AVAsyncProperty<Self, T>.Status

Parameters

  • property:

    A property identifier with a status to check.

Mentioned in

Return Value

A status value.

Discussion

A status of AVAsyncProperty.Status.loaded(_:) provides the property value, and a status of AVAsyncProperty.Status.failed(_:) provides an error that describes the failure.