Skip to content

feat: Swipe to dismiss Toasts #21769

Description

@dutchInCO

Feature Request

Toast can optionally be dismissed via swiping the toast.

Ionic version:

[x] 4.x
[x] 5.x

Describe the Feature Request

Toasts should be dismissible via swiping. Many modern mobile apps that show messages similar to Toasts in Ionic are easily dismissible via swiping left or right on the toast.

Describe Preferred Solution

A swipeToClose boolean option that could be added to the opts parameter in the Toast Controller's .create() function. Set to false by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions