iOSGestures is a Xojo module designed to make detecting user gestures such as
Tap, Swipe, Pinch, and Rotate as easy a possible. The module uses declares to
connect up Apple's own iOS Gesture Recognizers so you get 'official' behavior, including
when the user has enabled one or more accesability settings. Until Team Xojo adds
direct support iosGestures make makes adding them easy and they are fun to play with.
Supported Gestures: (with configurable parameters)
Tap (1-N taps by 1-N touches)
Swipe (Left, Right, Up, Down, 1-N Touches)
Long Press (1-N Touches, delay)
Pinch, Rotate, and Pan (1-N Touches)
Edge Pan From(Left, Right, Top, Bottom, 1-N Touches)
Gestures may be attached to either a view (e.g. to detect a swipe over the entire
screen) or a specific control (e.g. to detect taps on a canvas).
You may attach a gesture recognizer directly from the IDE by placing it on the shelf under
a view or directly from code.
Included are a rewrite of Xojo's SwipeExample done using the new swipeLeft/Right/Up/DownGestures
and the creatively named ExampleOne project that demos all of the supported gestures.
Special Thanks: To Michel Bujardet, for XojoiOSWrapper and his TableView setup for sample code and
the Xojo Team for the Xojo examples, especially for iosAlert for showing how to get the delegate for
gesture events setup correctly.
Warning: This is the first time I've shared Xojo code through GitHub. I've made a good
faith effort to clean up naming and namespace issues but there is likely going to be a bit
of churn as I figure out the best way to layout the code so updates diff nicely online.