DragRotateScaleView
DragRotateScaleView copied to clipboard
Supports Drag, Rotate, Scale. Easy to implement Draggable, Rotatable and Scalable View.
trafficstars
DragRotateScaleView
Draggable, Rotatable, Scalable View

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.