Calendar Component for n months Interval Swift

59 Views Asked by At

I'm trying to create a UNNotificationRequest using UNCalendarNotificationTrigger for a quarter(every 3 months) year interval.

I've been able to create a monthly trigger

 let component = Calendar.current.dateComponents([.hour, .minute, .second, .day], from: Date())
 let trigger = UNCalendarNotificationTrigger(dateMatching: component, repeats: true)

I'm avoiding UNTimeIntervalNotificationTrigger cause of the 28/29/30/31 days mnemonic.

0

There are 0 best solutions below