<!--
{
  "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/init(_:symbolName:values:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So15AVCaptureSliderC12AVFoundationE_10symbolName6valuesABSS_SSSaySfGtcfc"
  },
  "title" : "init(_:symbolName:values:)"
}
-->

# init(_:symbolName:values:)

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

```
@nonobjc convenience init(_ localizedTitle: String, symbolName: String, values: [Float])
```

## Parameters

`localizedTitle`

A localized title that describes the slider’s action.

`symbolName`

A symbol name from the SF Symbols library.

`values`

An array of floating-point values.

## Discussion

Use discrete sliders when your app supports selecting from a specific list of values.

---

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)