Trigger notification weekly Swift 3
You can set your trigger to repeat every monday at 1:05am as follow: import UserNotifications let trigger = UNCalendarNotificationTrigger(dateMatching: DateComponents(hour: 1, minute: 5, weekday: 2), repeats: true) print(trigger.nextTriggerDate() ?? “nil”) let content = UNMutableNotificationContent() content.title = “title” content.body = “body” // make sure you give each request a unique identifier. (nextTriggerDate description) let request = … Read more