---
title: segmentCount
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssegmentedcontrol/segmentcount
---

# segmentCount

The number of segments in the control.

## Declaration

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