<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionLayoutAnchor/init(edges:absoluteOffset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCollectionLayoutAnchor(cm)layoutAnchorWithEdges:absoluteOffset:"
  },
  "title" : "init(edges:absoluteOffset:)"
}
-->

# init(edges:absoluteOffset:)

Creates an anchor with the specified edges to attach to, offset by the provided absolute value.

```
convenience init(edges: NSDirectionalRectEdge, absoluteOffset: NSPoint)
```

---

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)