<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIShape-swift.struct/ResolutionContext/contentShape",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit7UIShapeV17ResolutionContextV12contentShapeAC8ResolvedVvp"
  },
  "title" : "contentShape"
}
-->

# contentShape

The resolved shape of the content to which this shape can apply.

```
var contentShape: UIShape.Resolved
```

## Discussion

For example, if this shape applies an effect to a button, the [`contentShape`](/documentation/UIKit/UIShape-swift.struct/ResolutionContext/contentShape) might represent the bounding shape of that button’s background. You typically size a dynamic shape relative to the bounding rectangle of the [`contentShape`](/documentation/UIKit/UIShape-swift.struct/ResolutionContext/contentShape).

---

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)