MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _getSwipeData

Function _getSwipeData

packages/core/ui/gestures/index.ios.ts:435–447  ·  view source on GitHub ↗
(args: GestureEventData)

Source from the content-addressed store, hash-verified

433}
434
435function _getSwipeData(args: GestureEventData): SwipeGestureEventData {
436 const recognizer = <UISwipeGestureRecognizer>args.ios;
437
438 return <SwipeGestureEventData>{
439 type: args.type,
440 view: args.view,
441 ios: args.ios,
442 android: undefined,
443 direction: _getSwipeDirection(recognizer.direction),
444 object: args.view,
445 eventName: toString(args.type),
446 };
447}
448
449function _getPanData(args: GestureEventData, view: UIView): PanGestureEventData {
450 const recognizer = <UIPanGestureRecognizer>args.ios;

Callers 1

_attachMethod · 0.85

Calls 2

toStringFunction · 0.90
_getSwipeDirectionFunction · 0.85

Tested by

no test coverage detected