---
title: "init(targetElement:targetRange:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiaccessibilitycustomrotoritemresult/init(targetelement:targetrange:)"
---

# init(targetElement:targetRange:)

Creates a rotor item result from the specified target element and text range.

## Declaration

```swift
init(targetElement: any NSObjectProtocol, targetRange: UITextRange?)
```

## Parameters

- `targetElement`: The target element of the rotor.
- `targetRange`: The text range for an element that contains text, such as a text view.

## Return Value

Return Value An initialized rotor item result.
