<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SurroundingsEffect/dark",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18SurroundingsEffectV4darkACvpZ"
  },
  "title" : "dark"
}
-->

# dark

An effect that dims passthrough video.

```
static var dark: SurroundingsEffect { get }
```

## Discussion

Use this value with the [`preferredSurroundingsEffect(_:)`](/documentation/SwiftUI/View/preferredSurroundingsEffect(_:)) view
modifier when you want to dim passthrough video while displaying a
particular view. Doing so helps to draw attention to your app’s content
while still enabling people to remain aware of their surroundings.
This value can be used in the shared space.

---

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)