<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ImmersiveContentBrightness",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26ImmersiveContentBrightnessV"
  },
  "title" : "ImmersiveContentBrightness"
}
-->

# ImmersiveContentBrightness

The content brightness of an immersive space.

```
struct ImmersiveContentBrightness
```

## Overview

Use a value of this type as an input to the
[`immersiveContentBrightness(_:)`](/documentation/SwiftUI/Scene/immersiveContentBrightness(_:)) scene modifier to indicate the
ambient content brightness of an [`ImmersiveSpace`](/documentation/SwiftUI/ImmersiveSpace).

When you do this to create an environment that’s suitable for video
playback, use one of the standard brightness values like [`bright`](/documentation/SwiftUI/ImmersiveContentBrightness/bright),
[`dim`](/documentation/SwiftUI/ImmersiveContentBrightness/dim), or [`dark`](/documentation/SwiftUI/ImmersiveContentBrightness/dark) to provide good results for most use cases. To
optimize further, you can create a custom brightness using a normalized
value that expresses the linear brightness ratio between a standard
dynamic range white video frame and the background that surrounds the
player window.

## Topics

### Getting brightness levels

[`static let automatic: ImmersiveContentBrightness`](/documentation/SwiftUI/ImmersiveContentBrightness/automatic)

The default content brightness.

[`static let dark: ImmersiveContentBrightness`](/documentation/SwiftUI/ImmersiveContentBrightness/dark)

A dark content brightness.

[`static let dim: ImmersiveContentBrightness`](/documentation/SwiftUI/ImmersiveContentBrightness/dim)

A dimmed content brightness.

[`static let bright: ImmersiveContentBrightness`](/documentation/SwiftUI/ImmersiveContentBrightness/bright)

A bright content brightness.

[`static func custom(Double) -> ImmersiveContentBrightness`](/documentation/SwiftUI/ImmersiveContentBrightness/custom(_:))

Creates a content brightness with a custom value.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

---

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)