title: How to download file in swift?
body: <p>I just started learning apple swift programming for iOS coming from android. I basically can now read and manipulate swift code and also learned some common classes used in iOS swift programming but still having some confusion with the syntax and everything. </p>
  
  <p>I'm trying to download file. Like, lets just say coming from this URL</p>
  
  <pre><code>var url = "http://www.mywebsite.com/myfile.pdf"
  </code></pre>
  
  <p>in a button click. Maybe with visual progress too</p>
  
  <p>Through searching here in stackoverflow, I stumbled upon Alamofire. I might try  it but I'm not sure if this is the best way for me to do it.</p>
  
  <p>So, I would like to ask how and what are my options (iOS7 and iOS8) in achieving my goal. Also, pros and cons would be awesome!</p>