     }
     
     private func handleScrollingOnAnimationView(animationView: UIView, withPullDistance pullDistance: CGFloat, withPullRatio pullRatio: CGFloat, withPullVelocity pullVelocity: CGFloat) {
-        if pullDistance < 60 {
-            self.circleView.alpha = pullDistance / 60
-            self.progressLayer.strokeEnd = pullDistance / 60 * 0.9
+        if pullDistance < self.height {
+            self.circleView.alpha = pullDistance / self.height
+            self.progressLayer.strokeEnd = pullDistance / self.height * 0.9
         } else {
             self.circleView.alpha = 1
             self.progressLayer.strokeEnd = 0.9

    }
    
    public func beginRefreshing() {
        self.refresh()
    }
    
    public func endRefreshing() {

    
    private func containingScrollViewDidEndDragging(scrollView: UIScrollView) {
        let actualOffset: CGFloat = scrollView.contentOffset.y
        if !self.refreshing && -actualOffset > self.height {
            self.refresh()
        }
    }
