i have use the single notification , and this is my code: this is for register the local notification>>>
func registerLocal() {
let center = UNUserNotifi
You can call the func scheduleLocal()
multiple times with different dateComponents
to schedule on different dates. Or you can pass a array of dates to this function and run a loop to schedule the notifications according to these dates.
Just make sure that the identifier you pass in UNNotificationRequest(identifier:, content:, trigger:)
function is different for each notification.
Hope this helps. :)