Contents

constraint(equalToSystemSpacingBelow:multiplier:)

Returns a constraint that defines the specific distance at which the current anchor is positioned below the specified anchor.

Declaration

func constraint(equalToSystemSpacingBelow anchor: NSLayoutYAxisAnchor, multiplier: CGFloat) -> NSLayoutConstraint

Parameters

  • anchor:

    The anchor to use as the starting point for the constraint.

  • multiplier:

    The multiple of the system spacing to use as the distance between the two anchors.

Return Value

An NSLayoutConstraint object that imposes a specific distance between the current anchor and the object in the anchor parameter.

Discussion

The constraint causes the current anchor to be positioned below the object in the anchor parameter. The distance between the two anchors is determined by multiplying the system spacing by the value in the multiplier parameter. The value of the system spacing is determined from information available from the anchors. For example, if the anchors represent text baselines, the spacing is determined by the fonts used at those baselines.

See Also

Building system spacing constraints