SwiftUI List - Move and Delete

These are notes I’ve taken while watching the video of the corresponding session. They don’t have all the information contained in the video, but I’ve tried to still write the main points for my personal use cases.

List { … }.onMove { model.move(from:$0,to: $1) }//drag to move .onDelete { model.remove($0) }//swipe to delete

That’s really it!

Image

Valentino Urbano

iOS Developer, Swift, Writer, Husband

Back to Overview