HorizontalLayout

public enum HorizontalLayout : Equatable

Horizontal sizing behavior for the presented view controller.

  • Sets the width of the view controller’s view according to the view controller’s preferredContentSize, property, if non-zero, or by calling systemLayoutSizeFitting(_:withHorizontalFittingPriority:verticalFittingPriority:) on the presented view controller’s view to determine the appropriate size.

    Declaration

    Swift

    case automatic(alignment: HorizontalAlignment)
  • Fills the available space based on edgeInsets and ignoredEdgesForMargins.

    Declaration

    Swift

    case fill