AsyncActionState

@available(*, deprecated, message: "Use SideEffect or StateUpdater instead")
public enum AsyncActionState : Equatable

This enum represents the state of an AsyncAction

  • The action has just been created

    Declaration

    Swift

    case loading
  • The action’s related operation has been completed

    Declaration

    Swift

    case completed
  • The action’s related operation has failed

    Declaration

    Swift

    case failed
  • The action’s related operation is in progress

    Declaration

    Swift

    case progress(percentage: Double)
  • The progress percentage associated with the state. Only available if the value of the enum is .progress

    Declaration

    Swift

    public var progressPercentage: Double? { get }
  • Implementation of the Equatable protocol

    Declaration

    Swift

    public static func == (lhs: AsyncActionState, rhs: AsyncActionState) -> Bool