LayoutConstraintDefinition

public struct LayoutConstraintDefinition

Undocumented

  • Creates the layout constraint defined within this LayoutConstraintDefinition object.

    Declaration

    Swift

    @discardableResult
    public func create() -> LayoutConstraint
  • Updates the layout constraint defined within this LayoutConstraintDefinition object.

    Note: This method assumes the referenced constraint already exist. If a matching constraint does not exist, the method traps with a fatalError.

    Declaration

    Swift

    @discardableResult
    public func update(updateAreaIntoConstraintsMask: Bool = true) -> LayoutConstraint
  • Attempts to remove a constraint whose anchors and relationships match the current constraint definition.

    If the operation succeeds, the layout constraint that was just removed is returned.

    If more than one constraint with the current relationship and anchors is present, only the first instance found is removed.

    Declaration

    Swift

    @discardableResult
    public func remove() -> LayoutConstraint?
  • Undocumented

    Declaration

    Swift

    public static func create<T>(
        first: LayoutAnchor<T>,
        second: LayoutAnchor<T>,
        relationship: Relationship = .equal,
        offset: Double = 0,
        multiplier: Double = 1,
        priority: LayoutPriority = .required
    ) -> LayoutConstraintDefinition
  • Undocumented

    Declaration

    Swift

    public static func create<T>(
        first: LayoutAnchor<T>,
        relationship: Relationship = .equal,
        offset: Double = 0,
        priority: LayoutPriority = .required
    ) -> LayoutConstraintDefinition
  • Undocumented

    Declaration

    Swift

    static func | (
        lhs: LayoutConstraintDefinition,
        rhs: LayoutPriority
    ) -> LayoutConstraintDefinition