---
title: zIndex
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionlayoutdecorationitem/zindex
---

# zIndex

The vertical stacking order of the decoration item in relation to other items in the section.

## Declaration

```swift
var zIndex: Int { get set }
```

## Discussion

Discussion The default value of this property is 0, which means the decoration item appears below all other items in the section.
