Skip to content

coderyi/YiViewDrag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published