---
title: shape
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uihoverstyle/shape-21npk
---

# shape

The shape to use for the hover effect.

## Declaration

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

## Discussion

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

## See Also

### Specifying a hover shape

- [UIShape](uikit/uishape-swift.struct.md)
