<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/ShapeMarkup/shapeScaled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit11ShapeMarkupV11shapeScaledAC0C0Ovp"
  },
  "title" : "shapeScaled"
}
-->

# shapeScaled

The type of the shape with values scaled to the current frame.

```
var shapeScaled: ShapeMarkup.Shape { get set }
```

## Discussion

Coordinate values are specified in points relative to the shape’s `frame`. When you resize
the shape, this property’s values automatically update to reflect the new dimensions.

Use `shape` if you need consistent relative proportions that don’t change when resizing.

```swift
var shape = ShapeMarkup(
    shape: .roundedRectangle(cornerRadius: 0.2),
    frame: CGRect(x: 0, y: 0, width: 100, height: 100)
)

// shapeScaled returns .roundedRectangle(cornerRadius: 20.0) // 20 points

shape.frame = CGRect(x: 0, y: 0, width: 200, height: 200)
// shapeScaled now returns .roundedRectangle(cornerRadius: 40.0) // 40 points
```

---

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)