I’m trying to convert Android (Java) code to iOS (Swift), and I need to create a custom SCIZoomPanModifier. In the android code, onFling, onDown, and onDown were overridden, but I can’t seem to do that in iOS. How can I override onFling, onDown, and onUp in iOS to mimic the android code?
You can import protected API via the code below:
and use it’s “internalHandleGesture:” method, in which you can handle different UIGestureRecognizer states.
For more information on how to create custom modifier – please see Custom Modifiers – the SCIGestureModifierBase API article in our documentation.
Hope that helps.
Please login first to submit.