---
title: "init(_:symbolName:numberOfIndexes:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcaptureindexpicker/init(_:symbolname:numberofindexes:)"
---

# init(_:symbolName:numberOfIndexes:)

Creates a control to pick a value from the specified number of indexes.

## Declaration

```swift
init(_ localizedTitle: String, symbolName: String, numberOfIndexes: Int)
```

## Parameters

- `localizedTitle`: A localized title that describes the picker’s action.
- `symbolName`: The name of the symbol from the SF Symbols library to use to represent this control.
- `numberOfIndexes`: The number of indexes to pick between. This value must be greater than 0.

## Discussion

Discussion Create a picker with this initializer when the control’s values don’t require titles.

## See Also

### Creating an index picker

- [init(_:symbolName:numberOfIndexes:localizedTitleTransform:)](avfoundation/avcaptureindexpicker/init(_:symbolname:numberofindexes:localizedtitletransform:).md)
- [init(_:symbolName:localizedIndexTitles:)](avfoundation/avcaptureindexpicker/init(_:symbolname:localizedindextitles:).md)
