Swipe actions are contextual commands attached to a list item that appear when the user slides that item horizontally, letting the user delete, archive, flag or mark it without opening a detail screen. In mobile UX, they are one of the most common ways to provide fast, direct manipulation of list content, and the familiar swipe to delete pattern in mail and messaging apps is the best-known example.
Swipe actions trade discoverability for speed: they keep the interface clean because the buttons stay hidden until needed, but users must know or learn that the gesture exists. Good implementations therefore always provide an alternative path to the same commands.
How swipe actions work on a list row
A swipe action begins when the system recognizes a horizontal drag on a row that exceeds a small movement threshold, typically about 10 points of travel, and that is clearly more horizontal than vertical. The row content then follows the finger and uncovers one or more action buttons on the leading or trailing edge.
From that point, the gesture resolves in one of three ways. A short swipe that is released reveals the buttons and leaves them open for a tap; a full swipe past a commit threshold triggers the first action immediately; and a swipe back or a tap elsewhere closes the row without effect. The table below summarizes these phases.
| Phase | User input | System response |
|---|---|---|
| Recognition | Horizontal drag beyond the threshold | Row starts tracking the finger |
| Partial reveal | Release before the commit point | Buttons stay visible for a tap |
| Full swipe | Drag past roughly half the row width | Primary action runs at once |
| Cancellation | Drag back or tap outside | Row returns to its resting state |
Visual and haptic feedback mark the commit point. On iOS, the primary button expands across the row and a light haptic tick confirms that releasing will execute the action, which helps prevent accidental full swipes.
Leading, trailing and destructive actions
Swipe actions are usually grouped by direction. Trailing actions, revealed by swiping from right to left in left-to-right languages, conventionally hold destructive or removal commands such as delete or archive, while leading actions hold positive or status commands such as mark as read or pin.
| Position | Common actions | Color convention |
|---|---|---|
| Trailing edge | Delete, archive, more | Red for destructive, gray for more |
| Leading edge | Mark as read, pin, flag | Blue, orange or yellow |
| Full-swipe primary | The single most frequent action | Matches its button color |
In right-to-left layouts such as Arabic and Hebrew, the edges are mirrored, so leading actions appear on the right. Platforms handle this automatically when developers use leading and trailing semantics rather than hard-coded left and right.
Platform implementations and guidelines
Both major platforms support swipe actions, but they frame them differently. Apple’s Human Interface Guidelines treat them as a standard list feature, while Material Design describes swipe on list items more cautiously and expects a visible alternative.
| Platform | API or component | Notable behavior |
|---|---|---|
| iOS UIKit | UISwipeActionsConfiguration | Full swipe on by default |
| SwiftUI | swipeActions modifier | Allows full swipe and edge choice |
| Android Views | ItemTouchHelper in RecyclerView | Developer draws the background |
| Jetpack Compose | SwipeToDismissBox | Anchored states with thresholds |
| Web and hybrid | Custom gesture libraries | Must avoid browser back-swipe conflict |
On Android, a swipe action must coexist with gesture navigation, where a swipe from the screen edge means back. Rows should therefore start recognition away from the outer edge, and the system gesture exclusion zones should be used sparingly.
Designing swipe actions well
Good swipe action design keeps the set small, predictable and reversible. Most guidelines suggest no more than three actions per side, with the most frequent one placed first so that it can serve as the full-swipe action.
| Decision | Recommended choice | Reason |
|---|---|---|
| Number of actions | One to three per edge | Buttons stay large enough to tap |
| Destructive full swipe | Allow only with undo | Mistakes become recoverable |
| Discoverability | Mirror actions in a menu | Supports users who never swipe |
| Labels | Icon plus short text | Icons alone are often ambiguous |
| Accessibility | Expose custom actions | Screen reader users cannot swipe the same way |
The undo pattern matters most for destructive actions. Instead of a blocking confirmation dialog, many apps remove the item immediately and show a snackbar with an Undo button for several seconds, which preserves the speed of the gesture while protecting against slips.
Common pitfalls and misconceptions
The most frequent problem is hidden functionality: when a command exists only behind a swipe, a large share of users never find it. Usability testing regularly shows that new users rely on visible buttons and long press menus before they experiment with gestures.
- Gesture conflicts arise when rows sit inside a horizontally scrolling carousel or a swipeable tab view.
- Inconsistent directions across screens of the same app break the user’s learned expectations.
- Missing accessibility actions make the commands unreachable with VoiceOver or TalkBack.
- Overly sensitive thresholds trigger actions during ordinary vertical scrolling.
A frequent misconception is that a swipe action is the same as a swipe gesture in general. A swipe gesture is any directional flick, used for paging or dismissing; a swipe action is specifically a row-level command surface revealed by that gesture.
Understanding it simply
Swipe actions are hidden buttons tucked behind each item in a list. When you slide a message sideways with your finger, buttons such as Delete or Archive appear, a bit like sliding a drawer open to reach the tools inside.
They make common chores much faster, because you do not have to open each item first. The trade-off is that you have to know they are there, so well-designed apps also offer the same commands in a regular menu.
Applied in practice
A product team redesigning a mobile email client finds in analytics that users open about 60 percent of messages only to archive them. The team adds a trailing full-swipe Archive action in gray, a secondary Delete button in red, and a leading Mark as Read action in blue, each with an icon and a short label.
To protect against slips, archiving shows a five-second Undo snackbar, and the same three commands appear in a long press menu and as VoiceOver and TalkBack custom actions. After release, the median time to clear a morning inbox of 40 messages drops noticeably in usability sessions, and support tickets about accidentally deleted mail stay flat because every destructive swipe is reversible.