Skip to content

Commit

Permalink
Add maven coordinates to README
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Mar 12, 2022
1 parent efa5e65 commit 533b105
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

https://user-images.githubusercontent.com/2387680/157795117-3a343625-4a34-4303-bb28-d2deea7f9b68.mp4

`SwipeableActionsBox` is a composable that can be swiped left or right to reveal actions. Unlike [SwipeToDismiss](https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#SwipeToDismiss(androidx.compose.material.DismissState,androidx.compose.ui.Modifier,kotlin.collections.Set,kotlin.Function1,kotlin.Function1,kotlin.Function1)), it is designed for swipe actions that _do not_ dismiss the composable.
`swipe` builds composables that can be swiped left or right for revealing actions. Unlike [SwipeToDismiss](https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#SwipeToDismiss(androidx.compose.material.DismissState,androidx.compose.ui.Modifier,kotlin.collections.Set,kotlin.Function1,kotlin.Function1,kotlin.Function1)), it is designed for swipe actions that _do not_ dismiss the composable.

```groovy
implementation "me.saket.swipe:swipe:1.0.0"
```

```kotlin
val archive = SwipeAction(
Expand Down
2 changes: 1 addition & 1 deletion swipe/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VERSION_NAME=1.0.0
POM_NAME=swipe
POM_PACKAGING=aar

POM_DESCRIPTION=A composable that can be swiped left or right to reveal actions.
POM_DESCRIPTION=swipe builds composables that can be swiped left or right for revealing actions.
POM_INCEPTION_YEAR=2022

POM_URL=https://github.com/saket/swipe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import kotlin.math.abs
import kotlin.math.roundToInt

/**
* A composable that can be swiped left or right to reveal actions.
* A composable that can be swiped left or right for revealing actions.
*
* @param swipeThreshold Minimum drag distance before any [SwipeAction] is
* activated and can be swiped.
Expand Down

0 comments on commit 533b105

Please sign in to comment.