andreamazz/UIView-draggable — pull request #3 by jrmsklar (2014-10-27 22:42:20+00:00)
Title: Add caging area

This pull request adds the functionality of adding a caging area to the draggable view, in which the view can not be dragged out of.

To add a caging area, set the `cagingArea` property on the view:

```objective-c
[view enableDragging];
view.cagingArea = theCagingArea;
```

This also adds a `UISwitch` to the demo project to showcase this behavior. In this demo, the caging area is the frame of the view controller's view.

![caging](https://cloud.githubusercontent.com/assets/879038/4800843/6c1eaf70-5e2a-11e4-88d0-a355670f5c9c.gif)