constraints(activeWhenNearEdge:)
Returns the constraints that the tracking layout guide activates when it’s near the given edge, and deactivates when it’s away from the given edge.
Declaration
func constraints(activeWhenNearEdge 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.