SwfitUI 2 on iOS 14 Fixes Swipe-to-Delete

A few weeks ago I wrote an article about how I attempted to fix the terrible swipe-to-delete animation in SwiftUI. While my solutions weren’t perfect, they were better than what SwiftUI came with. Well with the releases of iOS 14 and Xcode 12 betas, Apple has fixed swipe-to-delete. It now functions in SwiftUI just like it does in UIKit.

iOS 13 on an iPhone X
iOS 14 on an iPhone SE

As you can see, the new animation looks much better. I have the iOS 14 beta on my first-gen iPhone SE and the animation has been fixed. Using the Xcode 12 beta to load the exact same code onto my iOS 13.5 iPhone X yielded the same results as Xcode 11, so iOS 14 is required for this animation.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: