You need to create a notification content extension to display a custom notification using iOS10. In the Xcode menu bar, go to File-> New-> Target. Then in the list, select "Extend notification content."

Enter the relevant data and click Finnish. A new folder will appear with the name of your extension. There will be 3 files in the folder:
Info.plist :

, .
let category = UNNotificationCategory(identifier: "myNotificationCategory", actions: [], intentIdentifiers:[], options: [])
UNUserNotificationCenter.current().setNotificationCategories([category])
content.categoryIdentifier = "myNotificationCategory"
NotificationViewController .
func didReceive(_ notification: UNNotification) {
}
func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void) {
}
. , .
, .