Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  


Add swipe gesture recognizers.

Component Version macOS Windows Linux Server iOS SDK
iOSApp 13.1 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "iOSApp.AddSwipeGestureRecognizer"; Directions; Filename; ScriptName )   More


Parameter Description Example
Directions Pass directions you like to have.
Can be Right, Left, Up and Down.
"Right, Left"
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"


Returns OK or error.


Add swipe gesture recognizers.
Please make sure a layout is visible as we attach to the front layout. You may do a short pause after showing the layout for FileMaker to actually display it, before calling this function.
This may replace a recognizer from FileMaker itself and it may prevent scrolling if we consume the gesture before FileMaker.


Install a recognizer:

# Let FileMaker make the layout visible
Pause/Resume Script [ Duration (seconds): ,1 ]
# and add our recognizers
Set Variable [ $r ; Value: MBS( "iOSApp.AddSwipeGestureRecognizer"; "Right, Down, Up, Left"; Get(FileName); "Recognizer") ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a paid license.

Created 27th January 2023, last changed 27th January 2023

ZipFile.WriteText - iOSApp.ClearLastURL

💬 Ask a question or report a problem

Start Chat