Instance Method

rotation3DEffect(_:axis:anchor:anchorZ:perspective:)

Rotates this view’s rendered output in three dimensions around the given axis of rotation.

Declaration

func rotation3DEffect(_ angle: Angle, axis: (x: CGFloat, y: CGFloat, z: CGFloat), anchor: UnitPoint = .center, anchorZ: CGFloat = 0, perspective: CGFloat = 1) -> some View

See Also

Rotating and Transforming Views

func rotationEffect(Angle, anchor: UnitPoint) -> View

Rotates this view’s rendered output around the specified point.

func projectionEffect(ProjectionTransform) -> View

Applies a projection transformation to this view’s rendered output.

func transformEffect(CGAffineTransform) -> View

Applies an affine transformation to this view’s rendered output.