<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/HoverEffectContent/scaleEffect(x:y:anchor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18HoverEffectContentPAAE05scaleD01x1y6anchorQr14CoreFoundation7CGFloatV_AjA9UnitPointVtF"
  },
  "title" : "scaleEffect(x:y:anchor:)"
}
-->

# scaleEffect(x:y:anchor:)

Scales the view’s rendered output by the given horizontal and vertical
amounts, relative to an anchor point.

```
func scaleEffect(x: CGFloat = 1.0, y: CGFloat = 1.0, anchor: UnitPoint = .center) -> some HoverEffectContent
```

## Parameters

`x`

An amount that represents the horizontal amount to scale the
view. The default value is `1.0`.

`y`

An amount that represents the vertical amount to scale the view.
The default value is `1.0`.

`anchor`

The point with a default of [`center`](/documentation/SwiftUI/UnitPoint/center) that
defines the location within the view from which to apply the
transformation.

## Return Value

An effect that scales the view’s rendered output.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)