ResizingConstraint

class ResizingConstraint

The type of constraint affecting a given object while it’s being resized.

  • property documentation (update this)

    Declaration

    var rawValue: Double { get }
  • property documentation (update this)

    Declaration

    var pinnedElements: Array { get }
  • property documentation (update this)

    Declaration

    var flexibleElements: Array { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: ResizingConstraint) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.

  • Checks if the object is pinned or not.

    Takes in one string paramter representing a constraint type. The constraint can be one of the following values; right, left, top, bottom, width, and height. If the method returns true then the object is pinned by that constraint.

    Declaration

    func isPinned(_ string: String) -> Bool

    Parameters

    string

    The constaint type.

    Return Value

    Determination of whether or not the object is pinned by the provided constraint.