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
FlowRepresentablein aWorkflowshould persist based on itsshouldLoadfunction.Declaration
Swift
public static let `default`: FlowPersistence -
Indicates a
FlowRepresentablein aWorkflowwhoseshouldLoadfunction returns false, should still be persisted in the workflow.Declaration
Swift
public static let persistWhenSkipped: FlowPersistence -
Indicates a
FlowRepresentablein aWorkflowwhoseshouldLoadfunction returns true, should be removed from the workflow after proceeding forward.Declaration
Swift
public static let removedAfterProceeding: FlowPersistence -
A new instance of
FlowPersistence; only use for extending cases ofFlowPersistence.Declaration
Swift
public static var new: FlowPersistence { get } -
Indicates a
FlowRepresentablein aWorkflowwhoseshouldLoadfunction returns false, should be persisted in the workflow for backwards navigation.Declaration
Swift
public static let hiddenInitially: FlowPersistence
View on GitHub
FlowPersistence Class Reference