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

# init(effect:shape:)

Applies the provided content effect and pointer shape to the current region.

## Declaration

```swift
@MainActor @preconcurrency convenience init(effect: UIPointerEffect, shape: UIPointerShape? = nil)
```

## Parameters

- `effect`: The doc://com.apple.uikit/documentation/UIKit/UIPointerEffect-swift.enum to apply to the region.
- `shape`: The doc://com.apple.uikit/documentation/UIKit/UIPointerShape-swift.enum to use, defaults to nil.

## See Also

### Creating a pointer style

- [init(shape:constrainedAxes:)](uikit/uipointerstyle/init(shape:constrainedaxes:).md)
- [hidden()](uikit/uipointerstyle/hidden().md)
- [system()](uikit/uipointerstyle/system().md)
