<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionView/supplementaryView(forElementKind:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UICollectionView(im)supplementaryViewForElementKind:atIndexPath:"
  },
  "title" : "supplementaryView(forElementKind:at:)"
}
-->

# supplementaryView(forElementKind:at:)

Gets the supplementary view at the specified index path.

```
func supplementaryView(forElementKind elementKind: String, at indexPath: IndexPath) -> UICollectionReusableView?
```

## Parameters

`elementKind`

The kind of supplementary view to locate. This value is defined by the layout object. This parameter must not be `nil`.

`indexPath`

The index path of the supplementary view. This parameter must not be `nil`.

## Return Value

The specified supplementary view, or `nil` if the view could not be found.

---

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)