---
title: UIGlassContainerEffect
framework: uikit
role: symbol
role_heading: Class
path: uikit/uiglasscontainereffect
---

# UIGlassContainerEffect

A UIGlassContainerEffect renders multiple glass elements into a combined effect.

## Declaration

```swift
@MainActor class UIGlassContainerEffect
```

## Overview

Overview When using UIGlassContainerEffect with a UIVisualEffectView you can add individual glass elements to the visual effect view’s contentView by nesting UIVisualEffectView‘s configured with UIGlassEffect. In that configuration, the glass container will render all glass elements in one combined view, behind the visual effect view’s contentView.

## Topics

### Instance Properties

- [spacing](uikit/uiglasscontainereffect/spacing.md)

## Relationships

### Inherits From

- [UIVisualEffect](uikit/uivisualeffect.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Liquid Glass effects

- [UIGlassEffect](uikit/uiglasseffect.md)
