So I can get the next notification with the following 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
}
trigger gets me...
Hour: 16 Minute: 10 Second: 0, repeats: YES>
but i can't call trigger.dateComponents
How do I get this date?