Skip to content

Supports Drag, Rotate, Scale. Easy to implement Draggable, Rotatable and Scalable View.

License

Notifications You must be signed in to change notification settings

yokurin/DragRotateScaleView

Repository files navigation

DragRotateScaleView

Draggable, Rotatable, Scalable View

Version License Platform

Example

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

Open Example/DragRotateScaleView.xcworkspace and run DragRotateScaleView-Example to see a simple demonstration.

DragRotateScaleViewDelegate

protocol DragRotateScaleViewDelegate: class {
    func willPanGesture(_ sender: UIPanGestureRecognizer, view: DragRotateScaleView)
    func didPanGesture(_ sender: UIPanGestureRecognizer, view: DragRotateScaleView)

    func willPinchGesture(_ sender: UIPinchGestureRecognizer, view: DragRotateScaleView)
    func didPinchGesture(_ sender: UIPinchGestureRecognizer, view: DragRotateScaleView)

    func willRotateGesture(_ sender: UIRotationGestureRecognizer, view: DragRotateScaleView)
    func didRotateGesture(_ sender: UIRotationGestureRecognizer, view: DragRotateScaleView)

    func doubleTapGesture(_ sender: UITapGestureRecognizer, view: DragRotateScaleView)

    func longPressGesture(_ sender: UILongPressGestureRecognizer, view: DragRotateScaleView)
}

Requirements

  • iOS 8.0+
  • Xcode 10.0+
  • Swift 4.2+

Installation

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

pod 'DragRotateScaleView'

Author

Tsubasa Hayashi, yoku.rin.99@gmail.com

License

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

About

Supports Drag, Rotate, Scale. Easy to implement Draggable, Rotatable and Scalable View.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published