---
title: "init(edges:absoluteOffset:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/nscollectionlayoutanchor/init(edges:absoluteoffset:)"
---

# init(edges:absoluteOffset:)

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

## Declaration

```swift
convenience init(edges: NSDirectionalRectEdge, absoluteOffset: CGPoint)
```

## See Also

### Creating an anchor

- [init(edges:)](uikit/nscollectionlayoutanchor/init(edges:).md)
- [init(edges:fractionalOffset:)](uikit/nscollectionlayoutanchor/init(edges:fractionaloffset:).md)
