<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureIndexPicker"
  },
  "title" : "AVCaptureIndexPicker"
}
-->

# AVCaptureIndexPicker

A control for selecting from a set of mutually exclusive values by index.

```
class AVCaptureIndexPicker
```

## Overview

Index pickers are appropriate for controls that provide an indexed container of values.

## Topics

### Creating an index picker

[`init(_:symbolName:numberOfIndexes:)`](/documentation/AVFoundation/AVCaptureIndexPicker/init(_:symbolName:numberOfIndexes:))

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

[`init(_:symbolName:numberOfIndexes:localizedTitleTransform:)`](/documentation/AVFoundation/AVCaptureIndexPicker/init(_:symbolName:numberOfIndexes:localizedTitleTransform:))

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

[`init(_:symbolName:localizedIndexTitles:)`](/documentation/AVFoundation/AVCaptureIndexPicker/init(_:symbolName:localizedIndexTitles:))

Creates an object to select an index from a set of values.

### Handling interaction

[`setActionQueue(_:action:)`](/documentation/AVFoundation/AVCaptureIndexPicker/setActionQueue(_:action:))

Sets the action to perform on the specified dispatch queue when the control’s value changes.

[`setActionQueue:action:`](/documentation/AVFoundation/AVCaptureIndexPicker/setActionQueue:action:)

Sets the action to perform on the specified dispatch queue when the control’s value changes.

### Accessing the control value

[`selectedIndex`](/documentation/AVFoundation/AVCaptureIndexPicker/selectedIndex)

The currently selected index.

[`numberOfIndexes`](/documentation/AVFoundation/AVCaptureIndexPicker/numberOfIndexes)

The number of index values the control provides.

### Setting an accessibility identifier

[`accessibilityIdentifier`](/documentation/AVFoundation/AVCaptureIndexPicker/accessibilityIdentifier)

A string identifier for this control.

### Inspecting presentation attributes

[`symbolName`](/documentation/AVFoundation/AVCaptureIndexPicker/symbolName)

The name of the SF Symbol that represents this control.

[`localizedTitle`](/documentation/AVFoundation/AVCaptureIndexPicker/localizedTitle)

A localized title that describes the control’s action.

[`localizedIndexTitles`](/documentation/AVFoundation/AVCaptureIndexPicker/localizedIndexTitles)

The titles to present for each index.



---

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)