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

## Declaration

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

```

## 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 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.

## See Also

### Scaling

- [scaleEffect(_:anchor:)](swiftui/visualeffect/scaleeffect(_:anchor:).md)
- [scaleEffect(x:y:z:anchor:)](swiftui/visualeffect/scaleeffect(x:y:z:anchor:).md)
