---
title: doNotDisplay
framework: coremedia
role: symbol
role_heading: Instance Property
path: coremedia/cmsamplebuffer/sampleattachments-swift.struct/donotdisplay
---

# doNotDisplay

Indicates whether the sample should be decoded but not displayed.

## Declaration

```swift
var doNotDisplay: Bool { get set }
```

## Discussion

Discussion Use this attachment at run time to request this behavior from a display pipeline such as the AVSampleBufferDisplayLayer class. This attachment is not written to media files.
