Skip to content

Latest commit

 

History

History
 
 

ios

TiDraggable - Native Draggable Views

An enhanced fork of the original TiDraggable module by Pedro Enrique, allows for simple creation of "draggable" views.

Installation

In your tiapp.xml file add the following to the modules node:

<module version="2.0.0">ti.draggable<module>

Usage

var Draggable = require('ti.draggable'),
    mainWindow = Ti.UI.createWindow({
        backgroundColor : 'white'
    }),
    draggableView = Draggable.createView({
        width : 100,
        height : 100,
        backgroundColor : 'black'
    });

mainWindow.add(draggableView);
mainWindow.open();

Credits & Notes

The work is largely based on Pedro Enrique's TiDraggable module license under the MIT (V2) license.