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

# GlassBackgroundDisplayMode.implicit

Display the glass material only when the view isn’t already contained in
glass.

```
case implicit
```

## Discussion

Use this value to avoid duplicate backgrounds when a view that has a
glass background contains another view that also has a glass background.

This display mode doesn’t suppress duplicate glass backgrounds for
views that are offset by any amount in the z-axis. For example, the
two subviews of the following [`HStack`](/documentation/SwiftUI/HStack) behave differently:

```
HStack {
    MyView()
        .glassBackgroundEffect(displayMode: .implicit)
    MyView()
        .glassBackgroundEffect(displayMode: .implicit)
        .offset(z: 100)
}
.glassBackgroundEffect(displayMode: .always)
```

The first instance of `MyView` doesn’t display a background because its
container displays one. However the second instance does display a
background because that view is offset from its container by 100 points
along the z-axis.

---

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)