How to use Swipe gesture recognizer in a SwiftUi project

Hello, I'm making an app using SwiftUI in Xcode. I have a button showing a Int variable, and I want that by swiping up or down, the variable got increased by one. Is it possible ? Every videos that I seen on the subject was using UIKit and complicated stuff … Thanks for your help.

Answered by SwiftPro in 742518022

Tell my if you want my code.

Accepted Answer

Tell my if you want my code.

How to use Swipe gesture recognizer in a SwiftUi project
 
 
Q