         self.addSubview(detailsLabel!)
     }
     
-    func updateIndicators() {
+    private func updateIndicators() {
         let isActivityIndicator: Bool = indicator is UIActivityIndicatorView
         let isRoundIndicator: Bool = indicator is MBRoundProgressView
         
-        if mode == MBProgressHUDMode.MBProgressHUDModeIndeterminate {
+        if mode == MBProgressHUDMode.Indeterminate {
             if !isActivityIndicator {
                 indicator?.removeFromSuperview()
                 indicator = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.WhiteLarge)

            UIView.setAnimationDidStopSelector(Selector("animationFinished:finished:context:"))
            // 0.02 prevents the hud from passing through touches during the animation the hud will get completely hidden
            // in the done method
            if animationType == .MBProgressHUDAnimationZoomIn {
                self.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(1.5, 1.5))
            } else if animationType == .MBProgressHUDAnimationZoomOut {
                self.transform = CGAffineTransformConcat(rotationTransform, CGAffineTransformMakeScale(0.5, 0.5))
            }
            

}

enum MBProgressHUDMode: Int {
    case Indeterminate = 0
    case Determinate
    case DeterminateHorizontalBar
    case AnnularDeterminate
    case CustomView
    case Text
}

enum MBProgressHUDAnimation: Int {
    case Fade = 0
    case Zoom
    case ZoomOut
    case ZoomIn
}

typealias MBProgressHUDCompletionBlock = () -> Void
