Swipe actions

Also known as: swipe to delete

On this page 7

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.

PhaseUser inputSystem response
RecognitionHorizontal drag beyond the thresholdRow starts tracking the finger
Partial revealRelease before the commit pointButtons stay visible for a tap
Full swipeDrag past roughly half the row widthPrimary action runs at once
CancellationDrag back or tap outsideRow returns to its resting state
Phases of a swipe action gesture

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.

PositionCommon actionsColor convention
Trailing edgeDelete, archive, moreRed for destructive, gray for more
Leading edgeMark as read, pin, flagBlue, orange or yellow
Full-swipe primaryThe single most frequent actionMatches its button color
Typical placement of swipe actions

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.

PlatformAPI or componentNotable behavior
iOS UIKitUISwipeActionsConfigurationFull swipe on by default
SwiftUIswipeActions modifierAllows full swipe and edge choice
Android ViewsItemTouchHelper in RecyclerViewDeveloper draws the background
Jetpack ComposeSwipeToDismissBoxAnchored states with thresholds
Web and hybridCustom gesture librariesMust avoid browser back-swipe conflict
Swipe action support by platform

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.

DecisionRecommended choiceReason
Number of actionsOne to three per edgeButtons stay large enough to tap
Destructive full swipeAllow only with undoMistakes become recoverable
DiscoverabilityMirror actions in a menuSupports users who never swipe
LabelsIcon plus short textIcons alone are often ambiguous
AccessibilityExpose custom actionsScreen reader users cannot swipe the same way
Design decisions for swipe actions

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.