title: How to get sharedApplication in Swift on iOS?
body: <p>How can I get instance of current UIApplication from View Controller in Swift?</p>
  
  <p>I am getting <code>Use of unresolved identifier 'sharedApplication'</code> error with this code:</p>
  
  <pre><code>let app = sharedApplication as UIApplication
  </code></pre>