DragRotateScaleView 0.1.0

DragRotateScaleView 0.1.0

Tsubasa Hayashi 维护。



DragRotateScaleView

可拖动、可旋转、可缩放的视图

Version License Platform

示例

要运行示例项目,请克隆库,并首先从示例目录运行 pod install

打开 Example/DragRotateScaleView.xcworkspace 并运行 DragRotateScaleView-Example 看到一个简单的演示。

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)
}

要求

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

安装

DragRotateScaleView 通过 CocoaPods 提供。要安装,只需将以下行添加到 Podfile

pod 'DragRotateScaleView'

作者

Hayashi Tsubasa, [email protected]

许可证

DragRotateScaleView遵循MIT许可证。更多信息请参阅LICENSE文件。