title: Adding query parameter to the GET url in iOS in Swift3
body: <p>I have an URL with</p>
  
  <p><a href="https://api.asiancar.com/api/applicationsettings" rel="nofollow noreferrer">https://api.asiancar.com/api/applicationsettings</a></p>
  
  <p>It is basically a GET url so I need to pass a <code>boolean</code> "isMobile" and <code>timestamp</code> as query parameters . How to achieve this as the ultimate URL after passing the query will look like this:</p>
  
  <p><a href="https://api.asiancar.com/api/applicationsettings?timestamp=111122244556789879&amp;isMobile=true" rel="nofollow noreferrer">https://api.asiancar.com/api/applicationsettings?timestamp=111122244556789879&amp;isMobile=true</a></p>
  
  <pre><code>let queryItems = [
      NSURLQueryItem(timestamp: "1234568878788998989", isMobile: true),
      NSURLQueryItem(timestamp: "1234568878788998989", isMobile: true)
  ]
  let urlComps = NSURLComponents(string: "www.api.asiancar.com/api/applicationsettings")!
  urlComps.queryItems = queryItems
  let URL = urlComps.URL!
  </code></pre>
  
  <p>Am I doing right or any other modification ? please tell.</p>