Persistence
public enum Persistence : RawRepresentable
extension FlowPersistence.SwiftUI.Persistence: Equatable
A type indicating how a FlowRepresentable
should be persisted.
-
Indicates a
FlowRepresentable
in aWorkflow
should persist based on itsshouldLoad
function.Declaration
Swift
case `default`
-
Indicates a
FlowRepresentable
in aWorkflow
whoseshouldLoad
function returns true, should be removed from the workflow after proceeding forward.Declaration
Swift
case removedAfterProceeding
-
Creates a
Persistence
from aFlowPersistence
, or returns nil if no mapping exists.Declaration
Swift
public init?(rawValue: FlowPersistence)
-
The corresponding
FlowPersistence
for thisPersistence
Declaration
Swift
public var rawValue: FlowPersistence { get }