coderyi / YiViewDrag

UIView extension that adds dragging capabilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YiViewDrag

CI Status Version License Platform

Installation

YiViewDrag is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YiViewDrag'

Usage

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)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

License

YiViewDrag is available under the MIT license. See the LICENSE file for more info.

About

UIView extension that adds dragging capabilities

License:MIT License


Languages

Language:Swift 84.9%Language:Ruby 15.1%