{"id":13483583,"url":"https://github.com/saket/swipe","last_synced_at":"2025-05-16T18:07:30.894Z","repository":{"id":40488154,"uuid":"468421242","full_name":"saket/swipe","owner":"saket","description":"Swipe gesture actions for Compose UI","archived":false,"fork":false,"pushed_at":"2024-05-11T00:51:59.000Z","size":495,"stargazers_count":738,"open_issues_count":15,"forks_count":37,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2025-04-03T20:10:26.631Z","etag":null,"topics":["android","compose","gestures","swipe"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saket.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-10T16:21:09.000Z","updated_at":"2025-04-03T08:50:10.000Z","dependencies_parsed_at":"2024-02-03T06:26:00.474Z","dependency_job_id":"5f0b2fed-2a10-4fb6-a19f-91ff775f1fe6","html_url":"https://github.com/saket/swipe","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saket%2Fswipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saket%2Fswipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saket%2Fswipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saket%2Fswipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saket","download_url":"https://codeload.github.com/saket/swipe/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248601062,"owners_count":21131607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","compose","gestures","swipe"],"created_at":"2024-07-31T17:01:13.058Z","updated_at":"2025-04-12T16:47:56.864Z","avatar_url":"https://github.com/saket.png","language":"Kotlin","funding_links":[],"categories":["Kotlin","Libraries"],"sub_categories":["🍎 Compose UI"],"readme":"# swipe\n\nhttps://user-images.githubusercontent.com/2387680/157795117-3a343625-4a34-4303-bb28-d2deea7f9b68.mp4\n\n`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 their composable.\n\n```groovy\nimplementation \"me.saket.swipe:swipe:1.3.0\"\n```\n\n```kotlin\nval archive = SwipeAction(\n  icon = rememberVectorPainter(Icons.TwoTone.Archive),\n  background = Color.Green,\n  onSwipe = { … }\n)\n\nval snooze = SwipeAction(\n  icon = { Text(\"Snooze\") },\n  background = Color.Yellow,\n  isUndo = true,\n  onSwipe = { … },\n)\n\nSwipeableActionsBox(\n  startActions = listOf(archive),\n  endActions = listOf(snooze)\n) {\n  // Swipeable content goes here.\n}\n```\n\n## License\n\n```\nCopyright 2022 Saket Narayan.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaket%2Fswipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaket%2Fswipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaket%2Fswipe/lists"}