title: How to use MBProgressHUD with swift
body: <p>here is my code , but it showing the progress . is there any error in this code? please give some idea to fix this, or give some link related to this.</p>
  
  <pre><code>class Approval: UIViewController {
  
  var hud: MBProgressHUD = MBProgressHUD()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      fetchData()
  }
     func fetchData(){
        hud.show(true)
        // doing some http request
        dispatch_async(dispatch_get_main_queue()) {
           hud.hide(true)          
        }
     }
  
  }
  </code></pre>