Contents

setConstraints(_:activeWhenAwayFrom:)

Configures the tracking layout guide to automatically activate and deactivate constraints when the guide is away from the given edge.

Declaration

func setConstraints(_ trackingConstraints: [NSLayoutConstraint], activeWhenAwayFrom edge: NSDirectionalRectEdge)

Parameters

  • trackingConstraints:

    The constraints to deactivate when the tracking layout guide is close to edge, and to activate when it moves away from edge. If you pass nil, the guide deactivates any currently active constraints associated with this edge and removes them from tracking.

  • edge:

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

See Also

Configuring automatic constraint activation