It has been updated in both Swift 2 and Swift 3. This line should fix your issue. Also make sure any other lines with UIUserNotificationType have had their variables switched to lowercase.
let settings = UIUserNotificationSettings(types: [.alert, .badge, .sound], categories: nil)