         }
 
         if let enabledBadgeView = badgeViews.filter({ $0.enabled }).first {
-            badgeEnabledImageView.center = enabledBadgeView.center
-            badgeEnabledImageView.alpha = 0
-            badgeEnabledImageView.hidden = false
-
-            badgeEnabledImageView.transform = CGAffineTransformMakeScale(0.0001, 0.0001)
-
-            UIView.animateWithDuration(0.2, delay: 0.0, usingSpringWithDamping: 0.7, initialSpringVelocity: 0.0, options: UIViewAnimationOptions(0), animations: { _ in
-                self.badgeEnabledImageView.alpha = 1
-                self.badgeEnabledImageView.transform = CGAffineTransformMakeScale(1.0, 1.0)
-
-            }, completion: { finished in
-                self.badgeEnabledImageView.transform = CGAffineTransformIdentity
-            })
+            badgeEnabledImageViewAppearInCenter(enabledBadgeView.center)
         }
     }
 }

        }
    }

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)


                // select animation

                if self.badgeEnabledImageView.hidden {
                    self.badgeEnabledImageViewAppearInCenter(badgeView.center)

                } else {
                    UIView.animateWithDuration(0.2, delay: 0.0, usingSpringWithDamping: 0.65, initialSpringVelocity: 0.0, options: UIViewAnimationOptions(0), animations: { _ in
