@@ -7,7 +7,7 @@ import UIKit
77
88 //MARK: - animate controller
99 @IBInspectable public var animationDuration : CGFloat = 0.0
10- internal var displayLink : CADisplayLink ?
10+ public var displayLink : CADisplayLink ?
1111 /// start ~ stop: 0~1.0
1212 private var ticker : CGFloat = 1.0
1313 public var animationPercent : CGFloat {
@@ -34,7 +34,7 @@ import UIKit
3434 self . displayLinkTerminate ( displayLink: & self . displayLink)
3535 }
3636 }
37- final internal func displayLinkTerminate( displayLink: inout CADisplayLink ? ) {
37+ final public func displayLinkTerminate( displayLink: inout CADisplayLink ? ) {
3838 if ( displayLink != nil ) {
3939 //displayLink?.removeFromRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode)
4040 displayLink? . invalidate ( ) // also will remove from run loop
@@ -89,8 +89,8 @@ import UIKit
8989 @objc open func pinchGestureRecognized( recognizer: UIPinchGestureRecognizer ) { }
9090
9191 // MARK: - touch
92- internal var lastTouchPoint = CGPoint . zero
93- internal var isTouchMoving = false
92+ public var lastTouchPoint = CGPoint . zero
93+ public var isTouchMoving = false
9494 public final override func touchesBegan( _ touches: Set < UITouch > , with event: UIEvent ? ) {
9595 if self . isTouchMoving { } else { super. touchesBegan ( touches, with: event) }
9696 guard let location = touches. first? . location ( in: self ) else { return }
0 commit comments