Awesome! This works great and is so much simpler. I'll update the article.

The only problem is observing when the GestureState changes. In iOS 14, I can use .onChange(of:perform:). But in iOS 13, that's not supported.

I also tried using a custom Binding, but GestureState's set is read-only.

Did you get this working? Thanks for all your help anyway!

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrew Zheng

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app