Learn Courses My Dashboard

Delete Item in ViewModel

Please help or teach me ho to make a swipe to delete with MVVM I am really break my head how to make it ?

If you are using SwiftUI here’s an example

You can follow any tutorial and move the actions that are called from the view into a viewModel