Contents

setConstraints(_:activeWhenNearEdge:)

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

Declaration

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

Parameters

  • trackingConstraints:

    The constraints to activate when the tracking layout guide is close to edge, and to deactivate when it moves away from edge. If you pass nil, the guide stops tracking the constraints associated with edge.

  • edge:

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

See Also

Configuring automatic constraint activation