NSLayoutConstraint

extension NSLayoutConstraint
  • PowerUpSwift Returns a new constraint based on the passed in multiplier because the mutliplier property is read-only.

    Example

    myConstraint = myConstraint.withMultiplier(1.75)
    

    Declaration

    Swift

    public func withMultiplier(_ multiplier: CGFloat) -> NSLayoutConstraint

    Parameters

    multiplier

    The new value of the multiplier.

    Return Value

    The new constraint.