---
title: "SwipeProgress"
description: "Collects information about the ongoing swipe or animation in [swipeable].

To access this information, use [SwipeableState.progress]."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalWearMaterialApi
public class SwipeProgress<T>(
    public val from: T,
    public val to: T,
    @FloatRange(from = 0.0, to = 1.0) public val fraction: Float,
)
```


Collects information about the ongoing swipe or animation in `swipeable`.

To access this information, use `SwipeableState.progress`.

#### Parameters

| | |
| --- | --- |
| from | The state corresponding to the anchor we are moving away from. |
| to | The state corresponding to the anchor we are moving towards. |
| fraction | The fraction that the current position represents between `from` and `to`. Must be between `0` and `1`. |




