transformEffect(_:)
Applies an affine transformation to the view’s rendered output.
Declaration
func transformEffect(_ transform: CGAffineTransform) -> some VisualEffect
Parameters
- transform:
A Cgaffinetransform to apply to the view.
Return Value
An effect that applies an affine transformation to the view’s rendered output.
Discussion
Use transformEffect(_:) to rotate, scale, translate, or skew the output of the view according to the provided CGAffineTransform.