<!--
{
  "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/Glass",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5GlassV"
  },
  "title" : "Glass"
}
-->

# Glass

A structure that defines the configuration of the Liquid Glass material.

```
struct Glass
```

## Overview

You provide instances of a variant of Liquid Glass to the
[`glassEffect(_:in:)`](/documentation/SwiftUI/View/glassEffect(_:in:)) view modifier:

```swift
Text("Hello, World!")
    .font(.title)
    .padding()
    .glassEffect()
```

You can combine Liquid Glass effects using a [`GlassEffectContainer`](/documentation/SwiftUI/GlassEffectContainer),
which supports morphing views with this effect into each other based
on the geometry of their associated views.

---

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)