LabelLayout

open class LabelLayout<Label: UILabel>: BaseLayout<Label>, ConfigurableLayout

Layout for a UILabel.

  • Declaration

    Swift

    open func measurement(within maxSize: CGSize) -> LayoutMeasurement

    Parameters

    maxSize

    The maximum size available to the layout.

    Return Value

    The minimum size required by the layout and its sublayouts given a maximum size. The size of the layout MUST NOT exceed maxSize.

  • Declaration

    Swift

    open func arrangement(within rect: CGRect, measurement: LayoutMeasurement) -> LayoutArrangement

    Parameters

    rect

    The rectangle that the layout must position itself in.

    measurement

    A measurement which has size less than or equal to rect.size and greater than or equal to measurement.maxSize.

    Return Value

    A complete set of frames for the layout.

  • Declaration

    Swift

    open override func configure(view label: Label)
  • Declaration

    Swift

    open override var needsView: Bool