---
title: "init(forCellWithIndexPath:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uicollectionviewlayoutattributes/init(forcellwithindexpath:)"
---

# init(forCellWithIndexPath:)

## Declaration

```swift
convenience init(forCellWithIndexPath indexPath: IndexPath)
```
