Draggable, Rotatable, Scalable View
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.
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)
}
- iOS 8.0+
- Xcode 10.0+
- Swift 4.2+
DragRotateScaleView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DragRotateScaleView'
Tsubasa Hayashi, [email protected]
DragRotateScaleView is available under the MIT license. See the LICENSE file for more info.