---
title: "onGeometryChange3D(for:of:action:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/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.

## Declaration

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

```

## See Also

### Geometry

- [onGeometryChange(for:of:action:)](swiftui/view/ongeometrychange(for:of:action:).md)
- [onInteractiveResizeChange(_:)](swiftui/view/oninteractiveresizechange(_:).md)
