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 fromedge. If you passnil, the guide stops tracking the constraints associated withedge. - edge:
The edge that the tracking layout guide uses to determine whether to activate or deactivate the constraints.