A
A
Aleksandr Govorukhin2017-05-14 15:38:08
iOS
Aleksandr Govorukhin, 2017-05-14 15:38:08

How to add animation when swiping to delete CoreData in Swift 3?

Hello!
I ran into the problem of adding animation when deleting data from CoreData, I did not find manuals and decided to turn to experienced programmers here. When you click on the delete button, the entry remains and if you restart the application, it is removed. Is it possible to add a nice delete animation? I would be very happy to help, thanks!74f0d6fd8ea541eda5228658d1bcc87c.pngc3337a8b788f48178b3a8588c10093af.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksandr Govorukhin, 2017-05-15
@SnapSh0t

ff9e15217c3d461887f6090885c87714.png

self.ship.remove(at: indexPath.row)
   tableView.deleteRows(at: [indexPath as IndexPath], with: .automatic)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question