 import UIKit
 
 protocol BarcelonetaDelegate:class {
-    func barcelonetaDidMovedUp()
-    func barcelonetaDidMovedDown()
-    func barcelonetaDidRestore()
+    func barcelonetaDidStartMoving(view:Barceloneta)
+    func barcelonetaDidMovedUp(view:Barceloneta)
+    func barcelonetaDidMovedDown(view:Barceloneta)
+    func barcelonetaDidRestore(view:Barceloneta)
     func barcelonetaDidChangeValue(view:Barceloneta,value:Double)
     func barcelonetaDidRelease(view:Barceloneta)
     func barcelonetaDidReachNewIncrementalSetting(view:Barceloneta, incrementalSetting:(range:Range<Int>,value:Double))

        
        UIView.animateWithDuration(0.5, delay: 0, usingSpringWithDamping: 0.2, initialSpringVelocity: 25, options: UIViewAnimationOptions.AllowUserInteraction, animations: { () -> Void in
            self.superview!.layoutIfNeeded()
            }, completion: nil)
        
        delegate?.barcelonetaDidRelease(self)
    }
}
    func panned(sender: UIPanGestureRecognizer) {
        
        if(sender.state == .Began){
            delegate?.barcelonetaDidStartMoving(self)
            timer = NSTimer.scheduledTimerWithTimeInterval(timerInterval, target: self, selector: #selector(Barceloneta.timerCalled), userInfo: nil, repeats: true);
            timerHasBeenCalledAtLeastOnce = false
        }
