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

# scaleEffect(_:anchor:)

Scales the view’s rendered output by the given amount in both the
horizontal and vertical directions, relative to an anchor point.

```
func scaleEffect(_ scale: CGFloat, anchor: UnitPoint = .center) -> some HoverEffectContent
```

## Parameters

`scale`

The amount to scale the view in the view in both the horizontal
and vertical directions.

`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)