<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMSampleBuffer/SampleAttachments-swift.struct/displayImmediately",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:So17CMSampleBufferRefa9CoreMediaE17SampleAttachmentsV18displayImmediatelySbvp"
  },
  "title" : "displayImmediately"
}
-->

# displayImmediately

Indicates whether the sample should be displayed immediately.

```
var displayImmediately: Bool { get set }
```

## Discussion

If this key is present, the sample should be displayed as soon as possible rather than according to its
presentation timestamp. 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)