Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 2.07 KB

README.md

File metadata and controls

58 lines (37 loc) · 2.07 KB

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, [email protected]

License

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