3

My current project includes a list of messages plus a message detail view.

Three modes of deletion are requested (no other actions, like "reply", are possible):

  1. Detail view: delete icon in the toolbar + confirmation dialog
  2. Long-pressing a list item switches to a multi-selection mode and shows a "delete selected" icon in the toolbar that allows deletion of several items after a confirmation dialog
  3. Swipe to delete

I'm not too happy with swipe to delete - I think it's a bad idea, especially in our case. The reason is that there is no two-level deletion. In most mail clients, deleting a message from the inbox moves it to the trash first where you can recover it (so it's actually archival, not deletion). In our app the server doesn't have a "deleted items" flag or category - once deleted, it's gone for good. This also works with unread messages.

We do plan to implement an "undo" button that vanishes after several seconds or when scrolling, but I'm not satisfied. It works well enough in the gmail app when I'm at home or in the office, but in noisier environments like the subway, on the bus or while walking it happened more than once that instead of scrolling up/down the gesture was interpreted as a left/right archival movement and then I even missed the undo button. Mostly no harm done thanks to them being moved to the deleted mails folder, but I hate it when I accidentally dismissed notifications (no undo) without even knowing what they said. For the record, I don't think I'm extraordinarily clumsy.

I brought this up with my superiors and they suggested displaying a confirmation dialog after swipe-to-delete which in my opinion defeats the purpose of the smooth UI action.

My own solution: store ids of swiped messages in a temporary list, display a secondary toolbar containing something like "X items ready to [delete] / [undo]" was dismissed because it's not standard behavior (and "too much work").

Now my options are:

  1. Stop putting so much thought in it, just do what i'm told and delete messages without having the user explicitly confirm it
  2. Implement the blocking dialog after every swipe-to-delete
  3. Try to convince them by bringing new facts (and solutions) to the table

Can anybody help me deal with this situation? Are there official recommendations for or against swipe-without-archival?

Note: We don't provide any hint there's "swipe do delete" in the list because it's standard functionality.

3 Answers 3

2

I would suggest using some kind of warning dialog or message. For example, after swiping the message it reveals a red bar saying Are you sure you want to delete this message? with Yes and No buttons next to that, styled similarly to how Gmail has it done. This way the user has to swipe and then tap on the right button to delete a message.

2
  • And provide a checkbox for do not show again, because like what @stefs said before, it defeats the purpose of a smooth UI action. Then you let the user decide for safety or quick delete.
    – Yakke
    Jan 31, 2017 at 7:44
  • Yeah, that is a good idea.
    – user96349
    Jan 31, 2017 at 8:33
1

Although swiping by mistake might occur, instead of a confirmation window, I would only add a dialogue confirming that the file has been deleted but with a link/button to undo and the reason can be seen here: https://joshwayne.com/confirm-or-undo/

1

Depending on the App it might be necessary to include a confirmation for removing an item or not. In a simple to-do list or a list of elements for shopping, including a confirmation action for each element to be removed might be too much.

My impression is that this is not your case as you already have two different ways of removing that have some kind of confirmation. So what I would ask is: why this third method doesn't also have a confirmation?. Because either the previous confirmations were not needed or they were needed and so should be in this third case.

A confirmation doesn't need to be in terms of clicking a button where you have two choices "remove" or "cancel". You could, for example, use the same gesture:

  • First swipe left lets the item displaced to the left and a message appears behind the item saying "swipe again to delete". Swipping right would dismiss this message, swipping left (a second time) would confirm the action
  • In the former displaced state a confirmation button appears behind the element. To confirm the user has to tap this previously hidden button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.