For the complete documentation index, see llms.txt. This page is also available as Markdown.

Swipe

Trigger an action when the user swipes across a layer, in any direction or a specific one.

The Interaction Properties popup with the Swipe gesture selected

The Swipe gestures run an action when the user drags their finger across a layer and lets go. There are five swipe gestures:

  • Swipe Any fires for a swipe in any direction.

  • Swipe Up, Swipe Down, Swipe Left and Swipe Right each fire for one direction.

This is useful for patterns like:

  • Swipe up to continue or reveal an offer

  • Swipe left and right to choose between options

  • Swipe to dismiss a card or tutorial

  • Catch-all swipe areas built with a full-screen Hotspot

How it Works

Each swipe gesture has one Action slot.

A swipe starts when the user presses on the layer and is checked when they lift their finger. It counts when the finger has moved a short distance from where it started. The finger can leave the layer during the swipe.

  • There is no speed requirement. A slow drag across the layer counts as a swipe.

  • Each direction is checked on its own axis. Swipe Up fires when the finger moved far enough upward, regardless of any sideways movement.

  • Ending back where you started cancels the swipe. Only the distance between the start and the release point counts.

  • A second finger cancels the swipe.

If the layer sits inside a flipped group, swipe directions flip with it.

A diagonal swipe can fire several gestures at once. A swipe up and to the right fires Swipe Any, Swipe Up and Swipe Right if all three are on the layer. Set up only the directions you need.

Where You Can Use It

Swipe gestures are available on every layer type that supports interactions, including Images, Text, Shapes, Videos, Sequences, Groups and Hotspots.

Setting Up a Swipe

1

Select a layer and click + in the Interactions section.

2

Set the Gesture to Swipe Any or one of the four directions.

3

Choose an Action.

4

Repeat for each direction you want to react to.

5

Preview and swipe across the layer to test it.

Swipes are not compliant triggers for Launch URL, Launch App Store or Call Number. Use Single Tap for click-outs.

Last updated