<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGlassContainerEffect",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGlassContainerEffect"
  },
  "title" : "UIGlassContainerEffect"
}
-->

# UIGlassContainerEffect

A `UIGlassContainerEffect` renders multiple glass elements into a combined effect.

```
@MainActor class UIGlassContainerEffect
```

## 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`.

---

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)