UIUserNotificationSettings deprecated in iOS 10 [duplicate]
Registration of notification you should implement this code :
import UserNotificationsUNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { (granted, error) in //Parse errors and track state}
This resource contains additional information.