title: How to get date of upcoming notification in swift?
body: <p>So I can get the next notification with the following code:</p>
  
  <pre><code>let center = UNUserNotificationCenter.current()
      center.getPendingNotificationRequests { (notifications) in
  
          let pendingNotifications : [UNNotificationRequest] = notifications
          let notification = pendingNotifications[0]
          let trigger = notification.trigger
          let content = notification.content
      }
  </code></pre>
  
  <p>trigger gets me...</p>
  
  <p>
      Hour: 16
      Minute: 10
      Second: 0, repeats: YES></p>
  
  <p>but i can't call trigger.dateComponents</p>
  
  <p>How do I get this date?</p>