---
title: value
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uislider/value
---

# value

The slider’s current value.

## Declaration

```swift
var value: Float { get set }
```

## Discussion

Discussion Use this property to get and set the slider’s current value. To render an animated transition from the current value to the new value, use the setValue(_:animated:) method instead. If you try to set a value that’s below the minimum or above the maximum, the minimum or maximum value is set instead. The default value of this property is 0.0.

## See Also

### Accessing the slider’s value

- [setValue(_:animated:)](uikit/uislider/setvalue(_:animated:).md)
