<!--
{
  "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(_:anchor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ShapePAAE5scale_6anchorAA06ScaledC0VyxG14CoreFoundation7CGFloatV_AA9UnitPointVtF"
  },
  "title" : "scale(_:anchor:)"
}
-->

# scale(_:anchor:)

Scales this shape without changing its bounding frame.

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

## Parameters

`scale`

The multiplication factor used to resize this shape.
A value of `0` scales the shape to have no size, `0.5` scales to half
size in both dimensions, `2` scales to twice the regular size, and so
on.

## Return Value

A scaled form of this shape.

---

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)