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
FlowRepresentablecan 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
FlowRepresentableshould be wrapped in a NavigationLink.Important
You are responsible for supplying a NavigationView.Declaration
Swift
case navigationLink -
Indicates a
FlowRepresentableshould be presented modally.Important
Will not effect the first item in a Workflow.Declaration
Swift
case modal(_: ModalPresentationStyle = .sheet) -
Creates a
PresentationTypefrom aLaunchStyle, or returns nil if no mapping exists.Declaration
Swift
public init?(rawValue: LaunchStyle) -
Indicates a
FlowRepresentableshould be presented modally.Important
Will not effect the first item in a Workflow.Declaration
Swift
public static let modal: LaunchStyle.SwiftUI.PresentationType -
The corresponding
LaunchStylefor thisPresentationTypeDeclaration
Swift
public var rawValue: LaunchStyle { get }
View on GitHub
PresentationType Enumeration Reference