0Pricing
SwiftUI Academy · Lesson

Reordering with onMove

Drag rows to reorder them.

Let Users Reorder Rows

Sometimes order matters, like a to-do priority list. SwiftUI lets people drag rows into a new order with almost no extra code. ✨

Meet onMove

The onMove modifier sits on your ForEach and enables drag handles so rows can be picked up and dropped elsewhere.

All lessons in this course

  1. Swipe-to-Delete Rows
  2. Reordering with onMove
  3. Adding New Items
  4. Pull-to-Refresh
← Back to SwiftUI Academy