<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDynamicAnimator/layoutAttributesForCell(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDynamicAnimator(im)layoutAttributesForCellAtIndexPath:"
  },
  "title" : "layoutAttributesForCell(at:)"
}
-->

# layoutAttributesForCell(at:)

A convenience method for returning the layout attributes for a collection view cell.

```
func layoutAttributesForCell(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?
```

## Parameters

`indexPath`

The index path for the cell whose layout attributes you want.

## Return Value

The collection view layout attributes for the specified collection view cell.

## Discussion

---

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)