my app has to remind the user of something every n days.
Currently, I have
var dateComponents = DateComponents()
dateComponents.hour = userHour
dateComponents.minute = userMinute
let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: true)
My problem is that I don't know how to express the skipping of dates with DateComponents.
I've found UNTimeIntervalNotificationTrigger
which allows me to set it off every 24 or 48 etc. hours but this give me the possibility to fire at a certain daytime.
Should I mix those 2? First set the Calendar trigger and in the first notification make it actually repeat? Doesn't seem right to me, there must be an easier way.