LayoutMeasurement

public struct LayoutMeasurement

The size of a layout and the sizes of its sublayouts.

  • The layout that was measured.

    Declaration

    Swift

    public let layout: Layout
  • The minimum size of the layout given the maximum size constraint.

    Declaration

    Swift

    public let size: CGSize
  • The maximum size constraint used during measurement.

    Declaration

    Swift

    public let maxSize: CGSize
  • The measurements of the layout’s sublayouts.

    Declaration

    Swift

    public let sublayouts: [LayoutMeasurement]
  • Undocumented

    Declaration

    Swift

    public struct LayoutMeasurement
  • Convenience method to position this measured layout.

    Declaration

    Swift

    public func arrangement(within rect: CGRect) -> LayoutArrangement