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

# init(_:symbolName:in:step:)

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

```
@nonobjc convenience init(_ localizedTitle: String, symbolName: String, in range: ClosedRange<Float>, step: Float)
```

## Parameters

`localizedTitle`

A localized title that describes the slider’s action.

`symbolName`

A symbol name from the SF Symbols library.

`range`

A bounded range of floating point values.

`step`

The distance between each valid value. This specified value must be greater than `0` or the system throws an <doc://com.apple.documentation/documentation/Foundation/NSExceptionName/invalidArgumentException>.

## Discussion

Use discrete sliders when your use case supports selecting stepped values within the specified range.

---

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)