ContentLayout

enum ContentLayout

ContentLayout enums are designed to describe how to handle a ContentPage’s header and footer views but may be reused in other places. The default is always vertically stacked but other layouts might make sense from time to time.

  • A function that simply returns a more customized desired height

    Declaration

    Swift

    case custom(CustomContentLayout)
  • A leading and trailing grid unit of height plus the tallest of the the containing views sub ContentView instances in height

    Declaration

    Swift

    case horizontallyStacked
  • Each item separated by one grid unit of height, plus a leading and trailing grid unit for padding.

    Declaration

    Swift

    case verticallyStacked