<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/onGeometryChange3D(for:of:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE18onGeometryChange3D3for2of6actionQrqd__m_qd__AA0E7Proxy3DVcyqd__ctSQRd__lF::OverloadGroup"
  },
  "title" : "onGeometryChange3D(for:of:action:)"
}
-->

# onGeometryChange3D(for:of:action:)

Returns a new view that arranges to call `action(value)`
whenever the value computed by `transform(proxy)` changes, where
`proxy` provides access to the view’s 3D geometry properties.

```
@MainActor @preconcurrency func onGeometryChange3D<T>(for type: T.Type, of transform: @escaping (GeometryProxy3D) -> T, action: @escaping (T) -> Void) -> some View where T : Equatable
```

---

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)