title: Detecting if the wifi is enabled in swift
body: <p>In my app i have some NSURLConnection.sendAsynchronousRequest but because of that if the user has wifi disabled the app crashes. </p>
  
  <p>Is there a way to detect if the wifi is disabled so i can do something like that:</p>
  
  <pre><code>if(wifi is enabled)
  {
      NSURLConnection.sendAsynchronousRequest
  }
  </code></pre>