Contents

constraints(activeWhenAwayFrom:)

Returns the constraints that the tracking layout guide activates when it’s away from the given edge, and deactivates when it’s near the edge.

Declaration

func constraints(activeWhenAwayFrom edge: NSDirectionalRectEdge) -> [NSLayoutConstraint]

Parameters

  • edge:

    The edge that the tracking layout guide uses to determine when to activate or deactivate the constraints.

Return Value

An array of layout constraints that the tracking layout guide automatically activates and deactivates.

See Also

Configuring automatic constraint activation