---
title: "init(name:itemSearch:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiaccessibilitycustomrotor/init(name:itemsearch:)"
---

# init(name:itemSearch:)

Creates a rotor with the specified name and search block.

## Declaration

```swift
init(name: String, itemSearch itemSearchBlock: @escaping UIAccessibilityCustomRotor.Search)
```

## Parameters

- `name`: The name of the rotor.
- `itemSearchBlock`: The block that provides the next or previous rotor.

## Return Value

Return Value An initialized rotor object.

## See Also

### Creating a rotor object

- [init(attributedName:itemSearch:)](uikit/uiaccessibilitycustomrotor/init(attributedname:itemsearch:).md)
- [init(systemType:itemSearch:)](uikit/uiaccessibilitycustomrotor/init(systemtype:itemsearch:).md)
