---
title: "init(value:minValue:maxValue:target:action:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsslider/init(value:minvalue:maxvalue:target:action:)"
---

# init(value:minValue:maxValue:target:action:)

Creates a continuous horizontal slider that represents values over the specified range.

## Declaration

```swift
convenience init(value: Double, minValue: Double, maxValue: Double, target: Any?, action: Selector?)
```

## Parameters

- `value`: The initial value displayed by the control.
- `minValue`: The minimum value that the control can represent.
- `maxValue`: The maximum value that the control can represent.
- `target`: The target object that receives action messages from the control.
- `action`: The action message sent by the control.

## Return Value

Return Value An initialized slider control.

## See Also

### Creating sliders

- [init(target:action:)](appkit/nsslider/init(target:action:).md)
