PresentationType
@available(iOS 14.0, macOS 11, tvOS 14.0, watchOS 7.0, *)
public enum PresentationType : RawRepresentable, CaseIterable
extension LaunchStyle.SwiftUI.PresentationType: Equatable
A type indicating how a FlowRepresentable
should be presented.
-
Declaration
Swift
public static var allCases: [LaunchStyle.SwiftUI.PresentationType] { get }
-
Indicates a
FlowRepresentable
can be launched contextually.Important
This swaps out SwiftUI Views and does not animate by default; you can supply your own animations.Declaration
Swift
case `default`
-
Indicates a
FlowRepresentable
should be wrapped in a NavigationLink.Important
You are responsible for supplying a NavigationView.Declaration
Swift
case navigationLink
-
Indicates a
FlowRepresentable
should be presented modally.Important
Will not effect the first item in a Workflow.Declaration
Swift
case modal(_: ModalPresentationStyle = .sheet)
-
Creates a
PresentationType
from aLaunchStyle
, or returns nil if no mapping exists.Declaration
Swift
public init?(rawValue: LaunchStyle)
-
Indicates a
FlowRepresentable
should be presented modally.Important
Will not effect the first item in a Workflow.Declaration
Swift
public static let modal: LaunchStyle.SwiftUI.PresentationType
-
The corresponding
LaunchStyle
for thisPresentationType
Declaration
Swift
public var rawValue: LaunchStyle { get }