<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureIndexPicker/init(_:symbolName:numberOfIndexes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureIndexPicker(im)initWithLocalizedTitle:symbolName:numberOfIndexes:"
  },
  "title" : "init(_:symbolName:numberOfIndexes:)"
}
-->

# init(_:symbolName:numberOfIndexes:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)