title: Swift AppDelegate application:didFinishLaunchingWithOptions error
body: <p>Here is my code:</p>
  
  <pre><code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {
      return true
  }
  </code></pre>
  
  <p>I am reading through tutorials for <code>local push notifications</code> for my <code>iOS</code> app and this function comes up a lot however when implementing it in my project I get this error:</p>
  
  <blockquote>
    <p><em>Invalid redeclaration of 'application(_:didFinishLaunchingWithOptions:)'</em></p>
  </blockquote>
  
  <p>My question is why am I getting this error and what is the correct function to replace it with?</p>
  
  <p>I read the documentation in <code>Xcode</code> and it is telling that is function exists which is why I am confused.</p>