You can post notifications using two different APIs:
UILocalNotification, which has been around since iOS 4
User Notification framework, which is new in iOS 10
You recommend you look at the documentation for those APIs and then post back if you have specific questions.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"