Notification in Swift every day at a set time? [duplicate]
This question already has an answer here : UILocalNotification always shows up as soon as I load my app regardless of the fire date (1 answer) Closed 4 years ago . If anyone gets confused and thinks that this is a duplicate of my question from yesterday, it's not. There I was asking how to call a function every day, here I am asking how to call a notification at a specific time every day. I am looking for a way to repeat a local notification every day at 7.00AM. I currently have this code setup to get the day, month, year etc. let date = NSDate() let calendar = NSCalendar.currentCalendar() let