dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

Add SwipeView behavior to Reveal and Execute in chain #10096

Open fedemkr opened 2 years ago

fedemkr commented 2 years ago

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:

<SwipeItems Mode="RevealAndExecute">

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

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.