<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITrackingLayoutGuide/constraints(activeWhenAwayFrom:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITrackingLayoutGuide(im)constraintsActiveWhenAwayFromEdge:"
  },
  "title" : "constraints(activeWhenAwayFrom:)"
}
-->

# 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.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)