YiViewDrag is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'YiViewDrag'
enable drag
view.vd_enableDrag()
The movement area can be restricted to a given rect:
view.vd_cagingArea = CGRect(x: 0, y: 0, width: 300, height: 300)
To run the example project, clone the repo, and run pod install
from the Example directory first.
YiViewDrag is available under the MIT license. See the LICENSE file for more info.