---
title: "scaleEffect(_:anchor:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/hovereffectcontent/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.

## Declaration

```swift
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 doc://com.apple.SwiftUI/documentation/SwiftUI/UnitPoint/center that defines the location within the view from which to apply the transformation.

## Return Value

Return Value An effect that scales the view’s rendered output.
