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 FlowRepresentable can 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 FlowRepresentable should 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 FlowRepresentable should be launched modally.

    Declaration

    Swift

    case modal(ModalPresentationStyle)
  • An alias for PresentationType.modal(.default).

    Declaration

    Swift

    public static var modal: PresentationType { get }
  • Creates a PresentationType from a LaunchStyle, or returns nil if no mapping exists.

    Declaration

    Swift

    public init?(rawValue: LaunchStyle)
  • The corresponding LaunchStyle for this PresentationType

    Declaration

    Swift

    public var rawValue: LaunchStyle { get }