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 moreDeclaration
Swift
public enum HorizontalAlignment : Equatable, CaseIterable -
Controls where on the screen an automatically-sized view controller is placed vertically.
See moreDeclaration
Swift
public enum VerticalAlignment : Equatable, CaseIterable -
Horizontal sizing behavior for the presented view controller.
See moreDeclaration
Swift
public enum HorizontalLayout : Equatable -
Vertical sizing behavior for the presented view controller.
See moreDeclaration
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
PresentationLayoutwith the given horizontal and vertical layouts.Declaration
Swift
public init(horizontalLayout: HorizontalLayout, verticalLayout: VerticalLayout)Parameters
horizontalLayoutThe horizontal layout to use.
verticalLayoutThe 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
View on GitHub
Install in Dash
PresentationLayout Structure Reference