<!--
{
  "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:localizedTitleTransform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureIndexPicker(im)initWithLocalizedTitle:symbolName:numberOfIndexes:localizedTitleTransform:"
  },
  "title" : "init(_:symbolName:numberOfIndexes:localizedTitleTransform:)"
}
-->

# init(_:symbolName:numberOfIndexes:localizedTitleTransform:)

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

```
init(_ localizedTitle: String, symbolName: String, numberOfIndexes: Int, localizedTitleTransform: (Int) -> String)
```

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

`localizedTitleTransform`

A transformation from index to localized title.

## Discussion

Create a picker with this initializer if your app requires specifying a title for each value lazily.

---

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)