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

```kotlin
@ExperimentalWearMaterialApi
public object SwipeableDefaults
```

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

## Functions

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

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

The default resistance config used by [swipeable](/jetpack-compose/androidx.wear.compose/compose-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.wear.compose/compose-material/classes/ResistanceConfig) with the resistance basis equal to the distance between the two bounds.