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

# sampleCount

The number of samples per pixel for multisampling.

## Declaration

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

## See Also

### Inspecting the controller descriptor

- [colorPixelFormat](touchcontroller/tctouchcontrollerdescriptor/colorpixelformat.md)
- [depthAttachmentPixelFormat](touchcontroller/tctouchcontrollerdescriptor/depthattachmentpixelformat.md)
- [device](touchcontroller/tctouchcontrollerdescriptor/device.md)
- [drawableSize](touchcontroller/tctouchcontrollerdescriptor/drawablesize.md)
- [size](touchcontroller/tctouchcontrollerdescriptor/size.md)
- [stencilAttachmentPixelFormat](touchcontroller/tctouchcontrollerdescriptor/stencilattachmentpixelformat.md)
