Reorder Lists & Grids in SwiftUI and Save with SwiftData

SwiftUI's onMove makes reordering lists easy. But that order disappears when the app relaunches — unless you save it.

What this video covers:

  • Adding drag-to-reorder to List and LazyVGrid
  • Using onMove and onInsert modifiers
  • Capturing the new order after drag
  • Saving order changes to SwiftData (persistent storage)
  • Restoring saved order on app launch
  • Handling sections and complex data

Real example: A to-do list, playlist, or dashboard where users can rearrange items and expect their order to stay.

In partnership with
Looking for your next iOS opportunity?

Join the Mobile Signal Talent Directory and make your profile visible to hiring teams searching for iOS talent.

Join the Directory
© 2026 Mobile Signal. All rights reserved.
Made by
Stan
linkedin