PresentationType
public enum PresentationType : RawRepresentable, CaseIterable
extension LaunchStyle.PresentationType: Equatable
A type indicating how a FlowRepresentable should be presented.
-
Declaration
Swift
public static var allCases: [LaunchStyle.PresentationType] -
Indicates a
FlowRepresentablecan be launched contextually.Important
If there’s already a navigation stack, it will be used; otherwise views will present modally.Declaration
Swift
case `default` -
Indicates a
FlowRepresentableshould be launched in a navigation stack of some kind (For example with UIKit this would use a UINavigationController).Important
If no current navigation stack is available, one will be created.Declaration
Swift
case navigationStack -
Indicates a
FlowRepresentableshould be launched modally.Declaration
Swift
case modal(ModalPresentationStyle) -
An alias for
PresentationType.modal(.default).Declaration
Swift
public static var modal: PresentationType { get } -
Creates a
PresentationTypefrom aLaunchStyle, or returns nil if no mapping exists.Declaration
Swift
public init?(rawValue: LaunchStyle) -
The corresponding
LaunchStylefor thisPresentationTypeDeclaration
Swift
public var rawValue: LaunchStyle { get }
View on GitHub
PresentationType Enumeration Reference