PresentationLayout

public struct PresentationLayout : Equatable

How the presented view controller should be positioned in the presentation container.

  • Controls where on the screen an automatically-sized view controller is placed horizontally.

    See more

    Declaration

    Swift

    public enum HorizontalAlignment : Equatable, CaseIterable
  • Controls where on the screen an automatically-sized view controller is placed vertically.

    See more

    Declaration

    Swift

    public enum VerticalAlignment : Equatable, CaseIterable
  • Horizontal sizing behavior for the presented view controller.

    See more

    Declaration

    Swift

    public enum HorizontalLayout : Equatable
  • Vertical sizing behavior for the presented view controller.

    See more

    Declaration

    Swift

    public enum VerticalLayout : Equatable
  • How the presented view controller should be laid out horizontally.

    Declaration

    Swift

    public let horizontalLayout: HorizontalLayout
  • How the presented view controller should be laid out vertically.

    Declaration

    Swift

    public let verticalLayout: VerticalLayout
  • Creates a PresentationLayout with the given horizontal and vertical layouts.

    Declaration

    Swift

    public init(horizontalLayout: HorizontalLayout,
                verticalLayout: VerticalLayout)

    Parameters

    horizontalLayout

    The horizontal layout to use.

    verticalLayout

    The vertical layout to use.

  • The default PresentationLayout, which fills the width of the parent view controller and aligns the presented view controller to the bottom of the screen.

    Declaration

    Swift

    public static let `default`: PresentationLayout