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 aWorkflow
should persist based on itsshouldLoad
function.Declaration
Swift
public static let `default`: FlowPersistence
-
Indicates a
FlowRepresentable
in aWorkflow
whoseshouldLoad
function returns false, should still be persisted in the workflow.Declaration
Swift
public static let persistWhenSkipped: FlowPersistence
-
Indicates a
FlowRepresentable
in aWorkflow
whoseshouldLoad
function 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
FlowRepresentable
in aWorkflow
whoseshouldLoad
function returns false, should be persisted in the workflow for backwards navigation.Declaration
Swift
public static let hiddenInitially: FlowPersistence