---
title: "init(forSupplementaryViewOfKind:withIndexPath:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nscollectionviewlayoutattributes/init(forsupplementaryviewofkind:withindexpath:)"
---

# init(forSupplementaryViewOfKind:withIndexPath:)

## Declaration

```swift
convenience init(forSupplementaryViewOfKind elementKind: NSCollectionView.SupplementaryElementKind, withIndexPath indexPath: IndexPath)
```
