FlowPersistence

public final class FlowPersistence
extension FlowPersistence: Equatable

An extendable class that indicates how a FlowRepresentable should be persisted.

Discussion

Used when you are creating a Workflow.

  • Indicates a FlowRepresentable in a Workflow should persist based on its shouldLoad function.

    Declaration

    Swift

    public static let `default`: FlowPersistence
  • Indicates a FlowRepresentable in a Workflow whose shouldLoad function returns false, should still be persisted in the workflow.

    Declaration

    Swift

    public static let persistWhenSkipped: FlowPersistence
  • Indicates a FlowRepresentable in a Workflow whose shouldLoad function returns true, should be removed from the workflow after proceeding forward.

    Declaration

    Swift

    public static let removedAfterProceeding: FlowPersistence
  • new

    A new instance of FlowPersistence; only use for extending cases of FlowPersistence.

    Declaration

    Swift

    public static var new: FlowPersistence { get }
  • Indicates a FlowRepresentable in a Workflow whose shouldLoad function returns false, should be persisted in the workflow for backwards navigation.

    Declaration

    Swift

    public static let hiddenInitially: FlowPersistence