Skip to content

Commit

Permalink
go on public
Browse files Browse the repository at this point in the history
  • Loading branch information
DingSoung committed Jul 11, 2017
1 parent 04b108f commit 2dd58de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Graph/GraphyBaseView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UIKit

//MARK: - animate controller
@IBInspectable public var animationDuration:CGFloat = 0.0
internal var displayLink:CADisplayLink?
public var displayLink:CADisplayLink?
/// start ~ stop: 0~1.0
private var ticker:CGFloat = 1.0
public var animationPercent:CGFloat {
Expand All @@ -34,7 +34,7 @@ import UIKit
self.displayLinkTerminate(displayLink: &self.displayLink)
}
}
final internal func displayLinkTerminate(displayLink: inout CADisplayLink?) {
final public func displayLinkTerminate(displayLink: inout CADisplayLink?) {
if (displayLink != nil) {
//displayLink?.removeFromRunLoop(NSRunLoop.currentRunLoop(), forMode: NSDefaultRunLoopMode)
displayLink?.invalidate() // also will remove from run loop
Expand Down Expand Up @@ -89,8 +89,8 @@ import UIKit
@objc open func pinchGestureRecognized(recognizer: UIPinchGestureRecognizer) {}

// MARK: - touch
internal var lastTouchPoint = CGPoint.zero
internal var isTouchMoving = false
public var lastTouchPoint = CGPoint.zero
public var isTouchMoving = false
public final override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
if self.isTouchMoving {} else {super.touchesBegan(touches, with: event)}
guard let location = touches.first?.location(in: self) else {return}
Expand Down

0 comments on commit 2dd58de

Please sign in to comment.