---
title: GlassBackgroundDisplayMode
framework: swiftui
role: symbol
role_heading: Enumeration
path: swiftui/glassbackgrounddisplaymode
---

# GlassBackgroundDisplayMode

The display mode of a glass background.

## Declaration

```swift
enum GlassBackgroundDisplayMode
```

## Overview

Overview Use a value of this type to indicate when to display a glass background that you add to a view using a view modifier like glassBackgroundEffect(displayMode:).

## Topics

### Getting the mode

- [GlassBackgroundDisplayMode.always](swiftui/glassbackgrounddisplaymode/always.md)
- [GlassBackgroundDisplayMode.implicit](swiftui/glassbackgrounddisplaymode/implicit.md)
- [GlassBackgroundDisplayMode.never](swiftui/glassbackgrounddisplaymode/never.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Adding a glass background on views in visionOS

- [glassBackgroundEffect(displayMode:)](swiftui/view/glassbackgroundeffect(displaymode:).md)
- [glassBackgroundEffect(in:displayMode:)](swiftui/view/glassbackgroundeffect(in:displaymode:).md)
- [GlassBackgroundEffect](swiftui/glassbackgroundeffect.md)
- [AutomaticGlassBackgroundEffect](swiftui/automaticglassbackgroundeffect.md)
- [GlassBackgroundEffectConfiguration](swiftui/glassbackgroundeffectconfiguration.md)
- [FeatheredGlassBackgroundEffect](swiftui/featheredglassbackgroundeffect.md)
- [PlateGlassBackgroundEffect](swiftui/plateglassbackgroundeffect.md)
