dotnet / dotnet/maui

Add SwipeView behavior to Reveal and Execute in chain

Open
#10,096 1 comment 2 reactions 0 assignees View on GitHub
area-controls-swipeview proposal/open t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

It would be awesome to have both behaviors Reveal and Execute to work in chain so by swiping a bit you'd Reveal the actions and chose from them and if then you keep swiping you execute the main action. Also if from start you swipe all the way it executes the main action as well.
For example, this can be seen on WhatsApp app chats list that if you swipe a bit it shows you "Unread" and "Pin" and if you keep swiping it executes "Unread"

### Public API Changes

Maybe something like this would suffice to change the behavior:
```xml

```
And some additional properties to customize would be awesome as well, like different thresholds for Reveal and Execute.
And for the main action to execute, I think that the first one added should be the one to Execute.

### Intended Use-Case

I would really like this feature because it's a really nice shortcut for actions on lists and it also provides awesome flexibility to see which are the actions available and execute the main one in a really fast way.
Right now if there are more than one action the user needs 2 taps on Reveal mode whereas for the main action it would require only one swipe, making the UX faster for that case.
Also the animations for that are really cool and I think it provides like a modern design to an app

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing SwipeView implementation and its Reveal and Execute behaviors. Compare them with the described WhatsApp-style interaction, including thresholds, action ordering, and the proposed RevealAndExecute mode. Done means the chained gesture behavior and its public API are implemented with appropriate coverage for reveal, continued swiping, and direct full swipes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.