liveview-native / liveview-client-jetpack

MIT License
76 stars 3 forks source link

JetPack -> Modifiers -> Actions: Modifier.swipeable( state: SwipeableState<T>, anchors: Map<Float, T>, orientation: Orientation, enabled: Boolean, reverseDirection: Boolean, interactionSource: MutableInteractionSource?, thresholds: (from, to) -> ThresholdConfig, resistance: ResistanceConfig?, velocityThreshold: Dp ) #211

Open AZholtkevych opened 5 months ago

AZholtkevych commented 5 months ago

Doc: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier#(androidx.compose.ui.Modifier).swipeable(androidx.wear.compose.material.SwipeableState,kotlin.collections.Map,androidx.compose.foundation.gestures.Orientation,kotlin.Boolean,kotlin.Boolean,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function2,androidx.wear.compose.material.ResistanceConfig,androidx.compose.ui.unit.Dp)

Enable swipe gestures between a set of predefined states.

nelson-glauber commented 2 months ago

This modifier is for Wear OS (smart watches)