---
title: "transform3DEffect(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/transform3deffect(_:)"
---

# transform3DEffect(_:)

Applies a 3D transformation to this view’s rendered output.

## Declaration

```swift
nonisolated func transform3DEffect(_ transform: AffineTransform3D) -> some View

```

## Parameters

- `transform`: The 3D transformation to apply to the view, interpreting it as a 3D plane in space.

## Return Value

Return Value A view that renders transformed according to the provided transform

## Apply a transform about an anchor

Apply a transform about an anchor This does not adjust the transform relative to an anchor point. Instead, apply the scale and rotation separately using scaleEffect(_:anchor:) together with rotation3DEffect(_:anchor:). Model3D(url: URL(string: "https://example.com/robot.usdz")!)    .scaleEffect(transform.scale)    .rotation3DEffect(transform.rotation ?? .identity)    .transform3DEffect(AffineTransform3D(        translation: transform.translation))

## See Also

### Scaling, rotating, or transforming a view

- [scaledToFill()](swiftui/view/scaledtofill().md)
- [scaledToFit()](swiftui/view/scaledtofit().md)
- [scaleEffect(_:anchor:)](swiftui/view/scaleeffect(_:anchor:).md)
- [scaleEffect(_:anchor:)](swiftui/view/scaleeffect(_:anchor:).md)
- [scaleEffect(x:y:anchor:)](swiftui/view/scaleeffect(x:y:anchor:).md)
- [scaleEffect(x:y:z:anchor:)](swiftui/view/scaleeffect(x:y:z:anchor:).md)
- [aspectRatio(_:contentMode:)](swiftui/view/aspectratio(_:contentmode:).md)
- [rotationEffect(_:anchor:)](swiftui/view/rotationeffect(_:anchor:).md)
- [rotation3DEffect(_:axis:anchor:anchorZ:perspective:)](swiftui/view/rotation3deffect(_:axis:anchor:anchorz:perspective:).md)
- [perspectiveRotationEffect(_:axis:anchor:anchorZ:perspective:)](swiftui/view/perspectiverotationeffect(_:axis:anchor:anchorz:perspective:).md)
- [rotation3DEffect(_:anchor:)](swiftui/view/rotation3deffect(_:anchor:).md)
- [rotation3DEffect(_:axis:anchor:)](swiftui/view/rotation3deffect(_:axis:anchor:).md)
- [transformEffect(_:)](swiftui/view/transformeffect(_:).md)
- [projectionEffect(_:)](swiftui/view/projectioneffect(_:).md)
- [ProjectionTransform](swiftui/projectiontransform.md)
