---
title: "init(_:symbolName:in:step:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcaptureslider/init(_:symbolname:in:step:)"
---

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

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

## Declaration

```swift
@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

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

## See Also

### Creating a slider

- [init(_:symbolName:in:)](avfoundation/avcaptureslider/init(_:symbolname:in:).md)
- [init(_:symbolName:values:)](avfoundation/avcaptureslider/init(_:symbolname:values:).md)
