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

# init(effect:shape:)

Creates a hover style with the provided effect and shape.

## Declaration

```swift
@MainActor @preconcurrency convenience init(effect: some UIHoverEffect, shape: UIShape? = nil)
```

## See Also

### Creating a hover style

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