title: How to listen for notification dismissed event in iOS?
body: <p>I am listneing to actions pressed for my local notifications, but is there a way to determine when the user dismisses a notification?</p>
  
  <p>Here is how I'm listening to my actions in my AppDelegate, but the dismiss doesn't fire this:</p>
  
  <pre><code>func application(application: UIApplication, handleActionWithIdentifier identifier: String?, forLocalNotification notification: UILocalNotification, completionHandler: () -&gt; Void) {
          var actionName: String? = nil
  
          if let identifier = identifier {
              switch identifier {
                  case "snoozeAction":
                      actionName = "snoozeActionTapped"
                      break
                  default: break
              }
  
              if let name = actionName {
                  NSNotificationCenter.defaultCenter().postNotificationName(name, object: nil)
              }
          }
  
          completionHandler()
      }
  </code></pre>