<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Shape/scale(x:y:anchor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ShapePAAE5scale1x1y6anchorAA06ScaledC0VyxG14CoreFoundation7CGFloatV_AmA9UnitPointVtF"
  },
  "title" : "scale(x:y:anchor:)"
}
-->

# scale(x:y:anchor:)

Scales this shape without changing its bounding frame.

```
nonisolated func scale(x: CGFloat = 1, y: CGFloat = 1, anchor: UnitPoint = .center) -> ScaledShape<Self>
```

## Parameters

`x`

The multiplication factor used to resize this shape along its
x-axis.

`y`

The multiplication factor used to resize this shape along its
y-axis.

`anchor`

The point to rotate the shape around.

## Return Value

A scaled form of this shape.

## Discussion

Both the `x` and `y` multiplication factors halve their respective
dimension’s size when set to `0.5`, maintain their existing size when
set to `1`, double their size when set to `2`, and so forth.

---

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)