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

# AVCaptureSlider

A slider control that selects a value from a bounded range.

```
class AVCaptureSlider
```

## Overview

Sliders are appropriate for controls that provide a single float value.

## Topics

### Creating a slider

[`init(_:symbolName:in:)`](/documentation/AVFoundation/AVCaptureSlider/init(_:symbolName:in:))

Creates a continuous slider control that selects a value from a bounded range.

[`init(_:symbolName:in:step:)`](/documentation/AVFoundation/AVCaptureSlider/init(_:symbolName:in:step:))

Creates a discrete slider control that selects a stepped value from a bounded range.

[`init(_:symbolName:values:)`](/documentation/AVFoundation/AVCaptureSlider/init(_:symbolName:values:))

Creates a discrete slider control that selects a value from a list.

[`initWithLocalizedTitle:symbolName:minValue:maxValue:`](/documentation/AVFoundation/AVCaptureSlider/initWithLocalizedTitle:symbolName:minValue:maxValue:)

Creates a continuous slider control that selects a value from a bounded range.

[`initWithLocalizedTitle:symbolName:minValue:maxValue:step:`](/documentation/AVFoundation/AVCaptureSlider/initWithLocalizedTitle:symbolName:minValue:maxValue:step:)

Creates a discrete slider control that selects a stepped value from a bounded range.

[`initWithLocalizedTitle:symbolName:values:`](/documentation/AVFoundation/AVCaptureSlider/initWithLocalizedTitle:symbolName:values:)

Creates a discrete slider control that selects a value from a list.

### Handling interaction

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

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

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

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

### Accessing the control value

[`value`](/documentation/AVFoundation/AVCaptureSlider/value)

The current value of the slider.

[`prominentValues`](/documentation/AVFoundation/AVCaptureSlider/prominentValues-199dz)

Values in this array may receive unique visual representations or behaviors.

[`prominentValues`](/documentation/AVFoundation/AVCaptureSlider/prominentValues-7usgc)

Values in this array may receive unique visual representations or behaviors.

[`localizedValueFormat`](/documentation/AVFoundation/AVCaptureSlider/localizedValueFormat)

A localized string that defines the presentation of the slider’s value.

### Setting an accessibility identifier

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

A string identifier for the slider.

### Inspecting presentation attributes

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

The name of the SF Symbol that represents this control.

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

A localized title that describes the control’s action.



---

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)