<div class='sourceset sourceset-common'>Common</div>

> **Deprecated** SwipeableDeprecation

```kotlin
object SwipeableDefaults
```

Contains useful defaults for [swipeable](/jetpack-compose/androidx.compose.material/material/modifiers/swipeable) and [SwipeableState](/jetpack-compose/androidx.compose.material/material/classes/SwipeableState).

## Properties

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val AnimationSpec = SpringSpec<Float>()
```

The default animation used by [SwipeableState](/jetpack-compose/androidx.compose.material/material/classes/SwipeableState).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
val VelocityThreshold = 125.dp
```

The default velocity threshold (1.8 dp per millisecond) used by [swipeable](/jetpack-compose/androidx.compose.material/material/modifiers/swipeable).

<div class='sourceset sourceset-common'>Common</div>

```kotlin
const val StiffResistanceFactor = 20f
```

A stiff resistance factor which indicates that swiping isn't available right now.

<div class='sourceset sourceset-common'>Common</div>

```kotlin
const val StandardResistanceFactor = 10f
```

A standard resistance factor which indicates that the user has run out of things to see.

## Functions

<h2 id="resistanceconfig-anchors-factoratmin-factoratmax">resistanceConfig</h2>

```kotlin
fun resistanceConfig(
        anchors: Set<Float>,
        factorAtMin: Float = StandardResistanceFactor,
        factorAtMax: Float = StandardResistanceFactor,
    ): ResistanceConfig?
```

The default resistance config used by [swipeable](/jetpack-compose/androidx.compose.material/material/modifiers/swipeable).

This returns `null` if there is one anchor. If there are at least two anchors, it returns a
[ResistanceConfig](/jetpack-compose/androidx.compose.material/material/classes/ResistanceConfig) with the resistance basis equal to the distance between the two bounds.