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

# scaleEffect(_:anchor:)

Scales this view uniformly by the specified factor,
relative to an anchor point.

```
@export(implementation) nonisolated func scaleEffect(_ s: CGFloat, anchor: UnitPoint3D = .center) -> some View
```

## Parameters

`s`

The scale factor for this view.

`anchor`

The anchor point about which to scale the view. Defaults to center.

## Return Value

A view that scales this view by `s` in all dimensions.

## Discussion

The original dimensions of the view are considered to be unchanged by
scaling the contents. To change the dimensions of the view, use a
modifier like `frame()` instead.

---

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)