Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1004 Bytes

README.md

File metadata and controls

39 lines (33 loc) · 1004 Bytes

ScnViewGestures

Xamarin.Forms gestures plugin for view controls (targeted at Android & iOS).

Description

You can add gestures for any Xamarin.Forms view control. For that you need to initialize "Content" property in ViewGestures in your control. After that you can add events for required gestures. Supported gestures:

  • TouchBegan;
  • TouchEnded;
  • Tap;
  • SwipeLeft;
  • SwipeRight;
  • SwipeUp;
  • SwipeDown;
  • Drag.

Furthermore, there is capability adding animation on view control. Supported animation effects:

  • scaling;
  • flashing.

Also you can add own animation effect to events: TouchBegan and TouchEnded.

How to use this plugin in Xamarin.Forms app

It's required that you initilize renderers for each platform separately.

iOS:

Xamarin.Forms.Forms.Init ();
ViewGesturesRenderer.Init();

Android:

Xamarin.Forms.Forms.Init (this, bundle);
ViewGesturesRenderer.Init();