Topics Covered in This Adobe XD Tutorial:
Master advanced interaction design by implementing drag interactions, time-based triggers, immersive sound effects, and keyboard shortcuts—essential skills for creating production-ready prototypes.
Exercise Preview

Exercise Overview
In this hands-on exercise, you'll craft a sophisticated "drag to delete" interaction for a Messages app interface. This tutorial demonstrates how to combine multiple interaction types—drag gestures, timed animations, audio feedback, and keyboard controls—to create the polished, intuitive user experiences clients and stakeholders expect in 2026. While simple swipe-to-delete functionality might seem straightforward, executing it properly requires understanding the nuanced interplay between visual feedback, timing, and user control that separates amateur prototypes from professional presentations.
This exercise demonstrates how to prototype a swipe-to-delete feature for messaging apps. While this functionality cannot be built entirely into a component, prototyping one message interaction provides sufficient detail for client presentations and developer handoffs.
Getting Started
- In Adobe XD, go to File > Open from Your Computer or hit Cmd–Shift–O (Mac) or CTRL–Shift–O (Windows).
Navigate into Desktop > Class Files > Adobe XD Class and double–click on Messages App.xd to open it.
We've already created the layout and graphics for this design, so you can focus entirely on prototyping the sophisticated functionality that enables swipe-to-delete behavior on the Erin Steed message. Since Adobe XD's component system has limitations with complex state changes, we'll implement this interaction on a single message row—a common approach when demonstrating advanced functionality to clients and development teams. This targeted implementation provides a clear proof-of-concept that developers can reference when building the production feature across all message rows.
- In the Toolbar, choose the Select tool
. - Click on the red trash can graphic to select it.
- Cut it by hitting Cmd–X (Mac) or CTRL–X (Windows).
- Now we need to embed the delete affordance within the message structure itself. Double–click on the Erin Steed message row to enter the component instance, where we'll position the red deletion bar off-screen for the reveal animation.
- Paste the red bar by hitting Cmd–V (Mac) or CTRL–V (Windows).
As shown below, hold Shift and drag the red bar to the right so its edge touches the edge the artboard (it will snap into place).

- Click in an empty area of the canvas to deselect all elements. The red bar will disappear from view—this is intentional positioning for the interaction we're building.
- Select the artboard by clicking on the artboard name Messages (at the top left of the artboard).
- Duplicate it by hitting Cmd–D (Mac) or CTRL–D (Windows).
- Rename the new artboard by double–clicking the Messages – 1 name at the top left and change it to Delete.
Drag the Delete artboard down slightly (by dragging its name to move it).
Proper artboard spacing prevents visual confusion when connecting interactions and makes it easier to track the user flow during complex prototyping work.
On the Delete artboard, drag the Erin Steed message row to the left so you reveal the entire red bar. You should end up with it looking like this:

NOTE: The first artboard represents the initial state, while the second shows the fully revealed delete action. This two-state approach is fundamental to creating believable micro-interactions that feel responsive and intentional.
File Setup Process
Open Project File
Navigate to Desktop > Class Files > Adobe XD Class and open Messages App.xd using Cmd-Shift-O (Mac) or CTRL-Shift-O (Windows)
Prepare Delete Element
Select and cut the red trash can graphic using Cmd-X (Mac) or CTRL-X (Windows) to prepare for repositioning
Component Integration
Double-click the Erin Steed message row to enter component instance and paste the red bar off-screen for the swipe reveal effect
Adding a Drag Interaction
With our visual states prepared, we'll now wire up the drag gesture that triggers the reveal animation. Modern users expect drag interactions to feel immediate and responsive—the key is setting the right trigger sensitivity and animation properties.
- At the top left of the window click Prototype.
- In the first artboard Messages, select the Erin Steed message row.
- A blue arrow will appear to the right of the selected element. Drag this blue arrow to the Delete artboard to establish the interaction connection.
In the Property Inspector, configure these critical settings:
- Trigger: Drag
- Type: Auto-Animate
- Destination: Delete
- Easing: None
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or CTRL–Enter (Windows). - Test the interaction by dragging right to left over the Erin Steed message row. Notice how XD automatically calculates the drag threshold—short drags snap back to the original state, while longer drags commit to revealing the full delete bar. This built-in behavior mimics iOS and Android conventions that users already understand.
Close the preview window to return to the design canvas.
Drag Interaction Configuration
Enables swipe gesture recognition for mobile-style interactions
Creates smooth transitions between artboard states automatically
Provides immediate response matching user drag input
Short drags snap back, full drags reveal complete delete interface
Adding a Time Interaction
Professional interfaces don't leave users stranded in intermediate states. We'll implement an automatic progression that moves the interaction forward without requiring additional user input—a hallmark of polished, thoughtful design.
- At the top left of the window, click on Design.
- Click on the Delete artboard's name to select it.
- Duplicate it by hitting Cmd–D (Mac) or CTRL–D (Windows).
- Double–click on the artboard name Delete – 1 and change it to Done.
- In the Done artboard, select the red delete row.
Drag the bottom resize handle up so the red bar's height becomes nothing (the trash can icon will still be partially visible, but the next step will take care of that).

- In the Property Inspector, set Opacity
to 0%. - The lower messages must be moved up to fill the empty space. We've grouped all those messages, so drag them up (hold Shift as you drag) to fill the gap where the deleted message was positioned.
- At the top left of the window click Prototype.
- Select the Delete artboard by clicking its name.
- A blue arrow will appear on the right side of the artboard. Drag the blue arrow to the Done artboard.
In the Property Inspector, configure these timing parameters:
- Trigger: Time
- Delay: 0 s
- Type: Auto-Animate
- Destination: Done
- Easing: None
- Duration: 0.2 s
- Click in an empty area of the canvas to ensure nothing is selected.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or CTRL–Enter (Windows). - Drag right to left over the Erin Steed message row and release. Watch as the red bar appears, pauses momentarily, then automatically animates away as the message list reflows—exactly the kind of seamless interaction users expect in premium applications.
Close the preview window.
Time interactions enable automatic behavior without additional user input. By setting a 0-second delay with 0.2-second duration, the delete animation feels immediate yet smooth enough to provide visual feedback.
Animation Sequence Setup
Create Done State
Duplicate Delete artboard and modify red bar height to zero with 0% opacity for complete removal effect
Adjust Message Layout
Move remaining messages up to fill gap left by deleted message, maintaining visual continuity
Configure Time Trigger
Set 0-second delay with Auto-Animate type for immediate transition with 0.2-second smooth duration
Adding a Sound Effect
Audio feedback transforms good interactions into great ones. While visual animations communicate what's happening, sound confirms that an action has completed successfully—particularly important for destructive actions like deletion where users need clear confirmation.
- Select the Done artboard by clicking its name.
- A blue arrow will appear on the right side of the artboard. Click the blue arrow (don't drag this time, just click it) to add an additional interaction trigger.
In the Property Inspector, configure the audio playback:
- Trigger: Time
- Delay: 0 s
- Type: Audio Playback
- Audio File: Click on the menu and choose Add New File. Navigate into Desktop > Class Files > Adobe XD Class > Sounds and double–click on trash.wav to choose it.
- Click in an empty area of the canvas to ensure nothing is selected.
- Make sure your speakers are on and loud enough to hear sounds.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or CTRL–Enter (Windows). - Drag right to left over the Erin Steed message row and release. The complete interaction now includes visual feedback, smooth animation, and audio confirmation—the trifecta of polished interaction design that separates professional prototypes from basic wireframes.
Close the preview window.
Adding audio files requires navigating to the project's Sounds folder and selecting appropriate WAV files. The trash.wav file provides realistic feedback that enhances the delete action's perceived completion.
Adding a Keystroke
Finally, we'll implement an undo mechanism using keyboard shortcuts. Power users expect keyboard accessibility, and providing an undo path for destructive actions is both a usability best practice and often a legal accessibility requirement.
- Select the Done artboard by clicking its name.
- A blue plus will appear on the right side of the artboard. Drag the blue plus to the Messages artboard to create the reverse interaction flow.
In the Property Inspector, set up the undo behavior:
- Trigger: Keys & Gamepad
- Key: Click into the field and press Cmd–Z (Mac) or CTRL–Z (Windows)
- Type: Auto-Animate
- Destination: Messages
- Easing: Ease Out
- Duration: 0.2 s
- Click in an empty area of the canvas to ensure nothing is selected.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or CTRL–Enter (Windows). - Drag right to left over the Erin Steed message row to delete the message.
Hit Cmd–Z (Mac) or CTRL–Z (Windows) to trigger the undo action—the Erin Steed message should smoothly reappear, completing our comprehensive interaction design that handles both the primary action and its reversal.
Keystroke vs Other Triggers
| Feature | Keystroke Trigger | Other Triggers |
|---|---|---|
| Activation Method | Keyboard shortcut | Touch/click interaction |
| User Experience | Power user friendly | Universal accessibility |
| Platform Consistency | Matches OS conventions | Custom app behavior |
| Implementation | Keys & Gamepad trigger | Tap or drag triggers |
Audio in the Libraries Panel
The first time you add a sound it's embedded into your XD file. It can be seen in the Audio File menu when choosing sounds, and also in the Libraries panel
under Audio.
In the Libraries panel
, you can CTRL–click (Mac) or Right–click (Windows) on a sound and choose Delete if you're not using it and want to reduce the file size of your XD document. Managing audio assets becomes increasingly important as prototypes grow in complexity and need to be shared with stakeholders or development teams.
Audio files are embedded directly into XD files, increasing file size. Remove unused audio assets through the Libraries panel to maintain optimal performance and sharing capabilities.
Free UI Kits
This Messages app was built using Apple's iOS UI Kit, which they provide free to accelerate iOS app design workflows. To download it, in Adobe XD choose File > Get UI Kits > Apple iOS (and notice there are other platform-specific UI kits available as well). As of 2026, Adobe continues to update these kits to reflect the latest iOS design guidelines and component specifications.
Apple's system font San Francisco (SF) is the authentic choice for iOS interfaces. For this exercise we substituted Arial to avoid missing font issues, but when working with Apple's UI Kit in production, you should download San Francisco from developer.apple.com/fonts and install it on your system. This attention to typographic accuracy can make the difference between a prototype that feels like a proof-of-concept and one that feels like a nearly finished product.
Professional UI Kit Benefits
Apple iOS UI Kit
Official components and layouts that match current iOS design standards. Includes system fonts and native interaction patterns.
Font Considerations
San Francisco system font requires separate download from developer.apple.com/fonts. Arial substitution prevents missing font issues during development.
UI Kit Implementation
Access UI Kits
Navigate to File > Get UI Kits > Apple iOS to download official design components and templates
Install System Fonts
Download San Francisco font family from Apple Developer portal and install on your system for authentic iOS appearance
Customize Components
Adapt UI kit components to your specific app requirements while maintaining platform design consistency