Questions tagged [uiswipeactionsconfiguration]

33 questions
1
vote
1 answer

UITableView: swiping RowAction cancels the selected rows

I can see this behavior in both deprecated UITableViewRowAction class and UISwipeActionsConfiguration class: If you have allowsMultipleSelection property set to true and, let's say, you have 3 rows selected: When you start swiping any row in the…
1
vote
0 answers

How to prevent Trailing Swipe Actions from overlapping on my cell?

I have Trailing Swipe actions set up for my table view. And everything works fine, until I delete a cell, and then the cell below it has its trailing swipe actions overlapping with its cell when it's swiped over, rather than swiping over the actual…
Ethan
  • 11
  • 2
1
vote
0 answers

Swipe action sometimes "jumps" to end of the screen

I am using swipeAction in my app and sometimes you can see UI bug. Sometimes it "jumps" at the end of the screen. I don't really know how to describe it, so there is video: https://youtu.be/AG4vGxVD4c8 Is it something in my code? (Swift 4.2) func…
1
vote
1 answer

Row in UITableView isn't deleted immediately

I'm using trailingSwipeActionsConfigurationForRowAt UITableView's delegate method for handling when user swipe to delete certain cell (item). My UIContextualAction for delete event looks like this. I first remove item from Realm database and then I…
1
vote
3 answers

iOS TableView swipe UIContextualAction can not get a right image

I want to set a image in the left swipe of cell, there is the code, but It doesn't work. - (UISwipeActionsConfiguration *)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath { if (@available…
0
votes
1 answer

trailingSwipeActionsConfigurationForRowAt not being called on iPhone simulator in Xcode - works on iPad simulator

Recently updated Xcode to 13.4.1. When I compile to any iPhone simulator, swiping a tableViewCell does not trigger trailingSwipeActionsConfigurationForRowAt. Works fine on iPad simulator and on a real iPhone. func tableView(_ tableView: UITableView,…
0
votes
1 answer

How to set a UITableView Editing Mode from a swipe action?

I need to turn on a tableView editing mode by clicking on one of its cells from swipe action "move": Code for swipe action: override func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) ->…
0
votes
1 answer

Is it impossible to use custom view in delete action ( swipe button ) on UITableViewCell?

Currently, I want to use custom view on swiping delete action like this My custom view Is it impossible to do that? For now,I use function trailingSwipeActionsConfigurationForRowAt for custom icon image and title but I have no idea how to round…
0
votes
1 answer

SwipCellKit swift 5 - unable to swipe to launch the dele menu

I'm using Xcode 11.2 and Swift 5 with the latest version of SwipeCellKit. In my code, I have a UITableView with cells in it. I wish to add swipe action from the right, which will let me use two actions: delete and edit. For now, I'm trying only the…
Idanis
  • 1,918
  • 6
  • 38
  • 69
0
votes
1 answer

Dismiss UISwipeActionsConfiguration on reloading the table

When user swipe the cell I m showing some option. Everything is working fine, When user scroll the table swipe option goes off. I want the same behaviour when I reload the table on data change. How to achieve that. If user has swipe the cell and I…
0
votes
3 answers

tableView:editActionsForRowAt: on right-swipe?

As I was using tableView:editActionsForRowAt: to provide some useful functionalities in an iOS app. func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { print(#function) …
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

How to show user a preview of the swipe actions for a UITableViewCell

I have a UITableViewController that allows users to swipe left to Remove/Delete/Flag Actions. While this is a common iOS feature, we want to make sure the user knows it's there by doing a quick animation of it sliding open the first time it's…
eez
  • 41
  • 3
0
votes
1 answer

Set properly a colored icon in UIContextualAction

I am using a TableView to list some images with descriptions. Additionally this images needs to be shared and deleted and theirfore I am using UIContextualAction. To the object I set the image for deleting like this: deleteAction.image =…
0
votes
1 answer

How to set the delay in deleting cell with UISwipeActionsConfiguration?

I'm creating a task list. You can mark task and done by swiping the cell and clicking the swipe button. The .destructive style makes the cell disappear immediately which doesn't look good here. I'd like to make it a bit slower (could be fading first…
Monika
  • 3
  • 1
0
votes
1 answer

Odd animations with swipe to delete action in UITableView

I am encountering an issue with my UITableView. The animations for the delete swipe gesture does not work properly. The thing is, in the new template project "Master Detailed" it works well. But not in the project I am currently working in. I had…