# Action Handling

This guide shows how to handle Swipe Up and Action Button clicks from user.

You can also check out the demo on GitHub

Storyly Demo for Swift (opens new window)

Storyly Demo for Objective-C (opens new window)

Before you begin

You need to have the working Storyly setup as described in Quick Start

You can add Swipe Up or Action Button components to any Story using Storyly Studio.

You can define custom Action URL to these components so that user can be redirected to the in-app page content or an outlink. You need to click Edit button after selecting those components and enter any Action URL and title of component.

When the end-user clicks on the Swipe Up or Action Button, redirection needs to be handled by the application itself. In order to handle this action, you must register StorylyDelegate and override storylyActionClicked function in it. You can register the listener using the following code example:

    You must override storylyActionClicked function in StorylyDelegate which you have registered.