     case .FadeIn:
       alpha = 0
     case .FadeOut:
-      willdisappear = true
+      willDisappear = true
     case .FadeOutIn:
       let animation = CABasicAnimation()
       animation.keyPath = "opacity"


    UIView.animateWithDuration(duration, delay:delay, usingSpringWithDamping: damping, initialSpringVelocity: velocity, options: [], animations: { () -> Void in
      self.transform = CGAffineTransformIdentity
      if willdisappear {
        self.alpha = 0
      }
      else {

    var scaleX: CGFloat = 1
    var scaleY: CGFloat = 1
  
    var willDisappear = false
    
    switch(animationType) {
    case .SlideLeft:
