<!--
{
  "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/GlassEffectTransition/matchedGeometry",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21GlassEffectTransitionV15matchedGeometryACvpZ"
  },
  "title" : "matchedGeometry"
}
-->

# matchedGeometry

Returns the matched geometry glass effect transition.

```
static var matchedGeometry: GlassEffectTransition { get }
```

## Discussion

The matched geometry transition allows the geometries of
glass shapes during an appearance or disappearance phase of
a transition to be derived from the geometry of a nearby shape
within the glass container.

For example, if a newly appearing shape is within the spacing of
any existing shape, it will use that shapes geometry to transition
out of.

When using the [`default`](/documentation/SwiftUI/Animation/default), this transition applies
additional scale and offset effects to content when the identity
of the shape does not change but its content does. Opt out of
these additional animations by providing a specific animation
like [`spring`](/documentation/SwiftUI/Animation/spring).

---

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)