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

# init(edges:fractionalOffset:)

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

## Declaration

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

## See Also

### Creating an anchor

- [init(edges:)](uikit/nscollectionlayoutanchor/init(edges:).md)
- [init(edges:absoluteOffset:)](uikit/nscollectionlayoutanchor/init(edges:absoluteoffset:).md)
