I am using following code to trigger repeat alarm with end date.
let components = calendar.dateComponents([.month,.day,.hour,.minute], from: date, to: TODate)
After this code I have used notification for trigger. But this code is not working for triggering notifications.
But following code (only from date) works perfectly.
let components = calendar.dateComponents(in: .current, from: date).
How can I schedule a repeat alarm with end date?