Flow

public class Flow

Undocumented

  • Receiver ConstraintItem == Target.ConstraintItem

    Declaration

    Swift

    func set(_ item: ConstraintItem, _ targetItem: ConstraintItem) -> Flow

    Parameters

    item

    ConstraintItem to be set

    targetItem

    target Constraint

    Return Value

    current Flow instance

  • Receiver ConstraintItem.left == Target.ConstraintItem

    Declaration

    Swift

    func left(_ targetItem: ConstraintItem = .left) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .left

    Return Value

    current Flow instance

  • Receiver ConstraintItem.right == Target.ConstraintItem

    Declaration

    Swift

    func right(_ targetItem: ConstraintItem = .right) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .right

    Return Value

    current Flow instance

  • Receiver ConstraintItem.top == Target.ConstraintItem

    Declaration

    Swift

    func top(_ targetItem: ConstraintItem = .top) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .top

    Return Value

    current Flow instance

  • Receiver ConstraintItem.bottom == Target.ConstraintItem

    Declaration

    Swift

    func bottom(_ targetItem: ConstraintItem = .bottom) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .bottom

    Return Value

    current Flow instance

  • Receiver ConstraintItem.leading == Target.ConstraintItem

    Declaration

    Swift

    func leading(_ targetItem: ConstraintItem = .leading) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .leading

    Return Value

    current Flow instance

  • Receiver ConstraintItem.trailing == Target.ConstraintItem

    Declaration

    Swift

    func trailing(_ targetItem: ConstraintItem = .trailing) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .trailing

    Return Value

    current Flow instance

  • Receiver ConstraintItem.width == Target.ConstraintItem

    Declaration

    Swift

    func width(_ targetItem: ConstraintItem = .width) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .width

    Return Value

    current Flow instance

  • Receiver ConstraintItem.height == Target.ConstraintItem

    Declaration

    Swift

    func height(_ targetItem: ConstraintItem = .height) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .height

    Return Value

    current Flow instance

  • Receiver ConstraintItem.centerX == Target.ConstraintItem

    Declaration

    Swift

    func centerX(_ targetItem: ConstraintItem = .centerX) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .centerX

    Return Value

    current Flow instance

  • Receiver ConstraintItem.centerY == Target.ConstraintItem

    Declaration

    Swift

    func centerY(_ targetItem: ConstraintItem = .centerY) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .centerY

    Return Value

    current Flow instance

  • Receiver ConstraintItem.lastBaseline == Target.ConstraintItem

    Declaration

    Swift

    func lastBaseline(_ targetItem: ConstraintItem = .lastBaseline) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .lastBaseline

    Return Value

    current Flow instance

  • Receiver ConstraintItem.firstBaseline == Target.ConstraintItem

    Declaration

    Swift

    func firstBaseline(_ targetItem: ConstraintItem = .firstBaseline) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .firstBaseline

    Return Value

    current Flow instance

  • Receiver ConstraintItem.leftMargin == Target.ConstraintItem

    Declaration

    Swift

    func leftMargin(_ targetItem: ConstraintItem = .leftMargin) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .leftMargin

    Return Value

    current Flow instance

  • Receiver ConstraintItem.rightMargin == Target.ConstraintItem

    Declaration

    Swift

    func rightMargin(_ targetItem: ConstraintItem = .rightMargin) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .rightMargin

    Return Value

    current Flow instance

  • Receiver ConstraintItem.topMargin == Target.ConstraintItem

    Declaration

    Swift

    func topMargin(_ targetItem: ConstraintItem = .topMargin) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .topMargin

    Return Value

    current Flow instance

  • Receiver ConstraintItem.bottomMargin == Target.ConstraintItem

    Declaration

    Swift

    func bottomMargin(_ targetItem: ConstraintItem = .bottomMargin) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .bottomMargin

    Return Value

    current Flow instance

  • Receiver ConstraintItem.leadingMargin == Target.ConstraintItem

    Declaration

    Swift

    func leadingMargin(_ targetItem: ConstraintItem = .leadingMargin) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .leadingMargin

    Return Value

    current Flow instance

  • Receiver ConstraintItem.trailingMargin == Target.ConstraintItem

    Declaration

    Swift

    func trailingMargin(_ targetItem: ConstraintItem = .trailingMargin) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .trailingMargin

    Return Value

    current Flow instance

  • Receiver ConstraintItem.centerXWithinMargins == Target.ConstraintItem

    Declaration

    Swift

    func centerXWithinMargins(_ targetItem: ConstraintItem = .centerXWithinMargins) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .centerXWithinMargins

    Return Value

    current Flow instance

  • Receiver ConstraintItem.centerYWithinMargins == Target.ConstraintItem

    Declaration

    Swift

    func centerYWithinMargins(_ targetItem: ConstraintItem = .centerYWithinMargins) -> Flow

    Parameters

    targetItem

    target ConstraintItem, default .centerYWithinMargins

    Return Value

    current Flow instance

  • Constant value for ConstraintItem

    Declaration

    Swift

    func constant(_ item: ConstraintItem, constant: CGFloat) -> Flow

    Parameters

    item

    ConstraintItem

    constant

    value to be set

    Return Value

    current Flow instance

  • Width == Height

    Declaration

    Swift

    func size(_ size: CGFloat) -> Flow
  • Width, Height == ConstraintItem

    Declaration

    Swift

    func size(_ item: ConstraintItem) -> Flow
  • CenterX, CenterY

    Declaration

    Swift

    func center() -> Flow
  • Left, Top (constant) and Right, Bottom (-constant) with Superview

    Declaration

    Swift

    func edges(_ constant: CGFloat = 0) -> Flow
  • Undocumented

    Declaration

    Swift

    @discardableResult
    func withSuperview() -> Flow
  • Undocumented

    Declaration

    Swift

    @discardableResult
    func withView(_ view: UIView, exclude items: [ConstraintItem] = []) -> Flow
  • Undocumented

    Declaration

    Swift

    @discardableResult
    func withView(_ view: UIView, for item: ConstraintItem) -> Flow
  • Undocumented

    Declaration

    Swift

    @discardableResult
    func withSelf() -> Flow