Example of Gesture Protocol?

Apple’s developer documentation (https://developer.apple.com/documentation/swiftui/gesture) states that it is possible to “Create custom gestures by declaring types that conform to the Gesture protocol.” However, I cannot find an example of this anywhere on the internet. Does anyone have an example of a custom Gesture? Where would an app obtain touch data to begin with?

This tutorial dates several years ago, but should help you:

https://www.raywenderlich.com/1724-uigesturerecognizer-tutorial-creating-custom-recognizers

And these Apple reference docs:

Example of Gesture Protocol?
 
 
Q