---
title: bitsPerSample
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchableitemattributeset/bitspersample
---

# bitsPerSample

The number of bits per sample.

## Declaration

```swift
var bitsPerSample: NSNumber? { get set }
```

## Discussion

Discussion The value of this property can represent the bit depth of an image (such as 8-bit or 16-bit) or the bit depth per audio sample of uncompressed audio data (such as 8, 16, 24, 32, 64, and so on).

## See Also

### Describing images

- [isoSpeed](corespotlight/cssearchableitemattributeset/isospeed.md)
- [acquisitionMake](corespotlight/cssearchableitemattributeset/acquisitionmake.md)
- [acquisitionModel](corespotlight/cssearchableitemattributeset/acquisitionmodel.md)
- [aperture](corespotlight/cssearchableitemattributeset/aperture.md)
- [cameraOwner](corespotlight/cssearchableitemattributeset/cameraowner.md)
- [colorSpace](corespotlight/cssearchableitemattributeset/colorspace.md)
- [flashOn](corespotlight/cssearchableitemattributeset/flashon.md)
- [focalLength](corespotlight/cssearchableitemattributeset/focallength.md)
- [focalLength35mm](corespotlight/cssearchableitemattributeset/focallength35mm.md)
- [layerNames](corespotlight/cssearchableitemattributeset/layernames.md)
- [lensModel](corespotlight/cssearchableitemattributeset/lensmodel.md)
- [orientation](corespotlight/cssearchableitemattributeset/orientation.md)
- [pixelCount](corespotlight/cssearchableitemattributeset/pixelcount.md)
- [pixelHeight](corespotlight/cssearchableitemattributeset/pixelheight.md)
- [pixelWidth](corespotlight/cssearchableitemattributeset/pixelwidth.md)
