       }
     })
   }
-  
+
 }
 
 // MARK: - Delay function

  }
  
  private func makeSmallWithDelay(delay: CFTimeInterval) {
    changeTo(.Small, targetLayer: foregroundLayer, delay: delay)
  }
  
  private func makeOriginalWithDelay(delay: CFTimeInterval) {
    changeTo(.Original, targetLayer: foregroundLayer, delay: delay)
  }
  
  private func changeTo(state: ButtonState, targetLayer: CALayer, delay: CFTimeInterval) {
    
    let group = CAAnimationGroup()
    group.duration = animationDuration

    
    let nameValue = anim.valueForKey("name") as? String
    if let name = nameValue {
      if name == "makeOriginal" {
        CATransaction.begin()
        CATransaction.setDisableActions(true)
