LayoutBuilder

public class LayoutBuilder : LayoutWrapper

Fluent interface for Layout

  • Declaration

    Swift

    public func layout_internal_getLayout() -> Layout
  • Stack vertically

    Declaration

    Swift

    public func stack(_ wrappers: [LayoutWrapper]) -> Self
  • Stack horizontally

    Declaration

    Swift

    public func stackHorizontal(_ wrappers: [LayoutWrapper]) -> Self
  • Stack vertically

    Declaration

    Swift

    public func stackVertical(_ wrappers: [LayoutWrapper]) -> Self
  • Set width

    Declaration

    Swift

    public func width(_ width: LayoutSize) -> Self
  • Set width

    Declaration

    Swift

    public func width(_ width: Float) -> Self
  • Set min width

    Declaration

    Swift

    public func minWidth(_ minWidth: LayoutSize) -> Self
  • Set min width

    Declaration

    Swift

    public func minWidth(_ minWidth: Float) -> Self
  • Set max width

    Declaration

    Swift

    public func maxWidth(_ maxWidth: LayoutSize) -> Self
  • Set max width

    Declaration

    Swift

    public func maxWidth(_ maxWidth: Float) -> Self
  • Set height

    Declaration

    Swift

    public func height(_ height: LayoutSize) -> Self
  • Set height

    Declaration

    Swift

    public func height(_ height: Float) -> Self
  • Set min height

    Declaration

    Swift

    public func minHeight(_ minHeight: LayoutSize) -> Self
  • Set min height

    Declaration

    Swift

    public func minHeight(_ minHeight: Float) -> Self
  • Set max height

    Declaration

    Swift

    public func maxHeight(_ maxHeight: LayoutSize) -> Self
  • Set max height

    Declaration

    Swift

    public func maxHeight(_ maxHeight: Float) -> Self
  • Set stack direction

    Declaration

    Swift

    public func direction(_ direction: LayoutDirection) -> Self
  • Set align items

    Declaration

    Swift

    public func alignItems(_ alignItems: LayoutFit) -> Self
  • Use top margin guide

    Declaration

    Swift

    public func useTopMarginGuide() -> Self
  • Use bottom margin guide

    Declaration

    Swift

    public func useBottomMarginGuide() -> Self
  • Specify horizontal fit

    Declaration

    Swift

    public func horizontal(_ fit: LayoutFit) -> Self
  • Specify vertical fit

    Declaration

    Swift

    public func vertical(_ fit: LayoutFit) -> Self
  • Set aspect

    Declaration

    Swift

    public func aspect(_ value: Float) -> Self
  • Set left margin

    Declaration

    Swift

    public func left(_ value: Float) -> Self
  • Set right margin

    Declaration

    Swift

    public func right(_ value: Float) -> Self
  • Set top margin

    Declaration

    Swift

    public func top(_ value: Float) -> Self
  • Set bottom margin

    Declaration

    Swift

    public func bottom(_ value: Float) -> Self
  • Center fit horizontally and vertically

    Declaration

    Swift

    public func center() -> Self
  • Center fit horizontally and vertically, in parent

    Declaration

    Swift

    public func center(_ view: UIView) -> Self
  • Set parent

    Declaration

    Swift

    public func parent(_ view: UIView) -> Self
  • Stretch horizontally and vertically

    Declaration

    Swift

    public func matchParent() -> Self
  • Stretch horizontally and vertically, in parent

    Declaration

    Swift

    public func matchParent(_ view: UIView) -> Self
  • Set insets

    Declaration

    Swift

    public func insets(_ insets: UIEdgeInsets) -> Self
  • Set translatesAutoresizingMaskIntoConstraints to true

    Declaration

    Swift

    public func translatesAutoresizingMaskIntoConstraints() -> Self
  • Hug content more

    Declaration

    Swift

    public func hugMore() -> Self
  • Hug content more

    Declaration

    Swift

    public func hugMore(_ value: Float) -> Self
  • Hug content less

    Declaration

    Swift

    public func hugLess() -> Self
  • Hug content less

    Declaration

    Swift

    public func hugLess(_ value: Float) -> Self
  • Hug

    Declaration

    Swift

    public func hug(_ value: Float) -> Self
  • Resist more

    Declaration

    Swift

    public func resistMore() -> Self
  • Resist more

    Declaration

    Swift

    public func resistMore(_ value: Float) -> Self
  • Resist less

    Declaration

    Swift

    public func resistLess() -> Self
  • Resist less

    Declaration

    Swift

    public func resistLess(_ value: Float) -> Self
  • Set resist

    Declaration

    Swift

    public func resist(_ value: Float) -> Self
  • Set priority of constraints in this layout

    Declaration

    Swift

    public func priority(_ value: Float) -> Self
  • Set priority of constraints in this layout

    Declaration

    Swift

    public func priority(_ priority: UILayoutPriority) -> Self
  • Pin left

    Declaration

    Swift

    public func pinLeft() -> Self
  • Pin left

    Declaration

    Swift

    public func pinLeft(_ value: Float) -> Self
  • Pin right

    Declaration

    Swift

    public func pinRight() -> Self
  • Pin right

    Declaration

    Swift

    public func pinRight(_ value: Float) -> Self
  • Pin top

    Declaration

    Swift

    public func pinTop() -> Self
  • Pin top

    Declaration

    Swift

    public func pinTop(_ value: Float) -> Self
  • Pin bottom

    Declaration

    Swift

    public func pinBottom() -> Self
  • Pin bottom

    Declaration

    Swift

    public func pinBottom(_ value: Float) -> Self
  • Justify items

    Declaration

    Swift

    public func justifyItems(_ value: LayoutJustify) -> Self
  • Install the layout

    Declaration

    Swift

    @discardableResult
    public func install() -> Self
  • Reinstall the layout

    Declaration

    Swift

    @discardableResult
    public func reinstall() -> Self
  • uninstall the layout

    Declaration

    Swift

    @discardableResult
    public func uninstall() -> Self