---
title: "transformEffect(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/hovereffectcontent/transformeffect(_:)"
---

# transformEffect(_:)

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

## Declaration

```swift
func transformEffect(_ transform: CGAffineTransform) -> some HoverEffectContent

```

## Parameters

- `transform`: A doc://com.apple.documentation/documentation/CoreFoundation/CGAffineTransform to apply to the view.

## Return Value

Return Value An effect that applies an affine transformation to the view’s rendered output.

## Discussion

Discussion Use transformEffect(_:) to rotate, scale, translate, or skew the output of the view according to the provided CGAffineTransform.
