---
title: zIndex
framework: Touch Controller
role: symbol
role_heading: Instance Property
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+]
path: touchcontroller/tcswitchdescriptor/zindex
---

# zIndex

The z-index of the switch. A lower z-index is drawn first.

## Declaration

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

## See Also

### Inspecting the descriptor

- [contents](touchcontroller/tcswitchdescriptor/contents.md)
- [highlightDuration](touchcontroller/tcswitchdescriptor/highlightduration.md)
- [label](touchcontroller/tcswitchdescriptor/label.md)
- [offset](touchcontroller/tcswitchdescriptor/offset.md)
- [size](touchcontroller/tcswitchdescriptor/size.md)
- [switchedOnContents](touchcontroller/tcswitchdescriptor/switchedoncontents.md)
