<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GlassEffectContainer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20GlassEffectContainerV"
  },
  "title" : "GlassEffectContainer"
}
-->

# GlassEffectContainer

A view that combines multiple Liquid Glass shapes into a single
shape that can morph individual shapes into one another.

```
@MainActor @preconcurrency struct GlassEffectContainer<Content> where Content : View
```

## Overview

Use a container with the
[`glassEffect(_:in:)`](/documentation/SwiftUI/View/glassEffect(_:in:)) modifier. Each view with a
Liquid Glass effect contributes a shape rendered with the effect
to a set of shapes. SwiftUI renders the effects together, improving
rendering performance and allowing the effects to interact with and
morph into one another.

Configure how shapes interact with one another by customizing
the default spacing value of the container. As shapes near one
another, their paths start to blend into one another. The higher the
spacing, the sooner blending begins as the shapes approach each other.

## Relationships

### Conforms To

[`View`](/documentation/SwiftUI/View)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)