<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIHoverStyle/shape-21npk",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So12UIHoverStyleC5UIKitE5shapeAC7UIShapeVSgvp"
  },
  "title" : "shape"
}
-->

# shape

The shape to use for the hover effect.

```
@MainActor @preconcurrency var shape: UIShape? { get set }
```

## Discussion

If the value of this property is `nil`, the system chooses a default shape based on the view.

---

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)