---
title: "init(shape:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uihoverstyle/init(shape:)"
---

# init(shape:)

Creates a hover style with the provided shape and an automatic hover effect.

## Declaration

```swift
@MainActor @preconcurrency convenience init(shape: UIShape? = nil)
```

## See Also

### Creating a hover style

- [init(effect:shape:)](uikit/uihoverstyle/init(effect:shape:).md)
