SwiftUI - Reorder a List (2 Ways) @seanallen
SwiftUI - Reorder a List (2 Ways)  @seanallen
Uploaded August 2024 | Updated September 2026, 1 hour ago
Go to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

In this video I demonstrate two different ways to implement reordering a list in SwiftUI. First, I show you a way that was introduced in iOS 16 that's built right into List. Then I'll show you the classic .onMove that's been around for a while (in case you need to support older versions).

I also show you how to update the list order of all the items in case you need to save or persist this list order in between launches.

My iOS Dev Courses:
seanallen.teachable.com/?video=VNRdRlHsr2k

My Source Code:
seanallen.teachable.com/p/source-code-youtube-videos?video=VNRdRlHsr2k

X (Twitter):
Sean Allen - twitter.com/seanallen_dev

Hired.com:
hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Mark Moeyken’s SwiftUI Books:
bigmountainstudio.com/a/fzc51

Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803

RocketSim - Enhance Your Xcode Simulator:
gumroad.com/a/51797971/ftvbh

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
gumroad.com/a/656585843

Timestamps:
0:00 - 2 Ways to Reorder a List
0:17 - Start Project Review
1:35 - Reorder a List - First Method (new in iOS 16)
3:40 - onChange for Additional Logic
7:08 - Pros & Cons of Each Approach
8:24 - onMove Implementation - Second Method

#swift #softwaredeveloper #iosdeveloper
SwiftUI - Reorder a List (2 Ways)iOS Agent Skills, App Store Connect CLI, Foundation Models Tokens & MoreIntro to Apple Search Ads - Setup Your First Campaign (Tutorial)I Want to Buy Your iOS AppXcode Tip - GIFs & Videos from Simulator #iosdeveloper #swift #xcodeYou Need to Document Your Swift Code with DocCiOS Dev Job Interview - Must Know TopicsXcode Tip - Fast Variable Name Change #iosdeveloper #swift #xcodeVibe coding is killing your critical thinking skillsSwift SDK for Android, Shipaton Winners, Foundation Models, Scroll Performance & More.Swift News - WWDC 24, MVVM Dead?, App Sound Design, 1 Star Reviews, Indie Dev & MoreApp Icons are Changing in iOS 26 - How to Make Them
Sean Allen |

SwiftUI - Reorder a List (2 Ways)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER