Swift 2.0 – Binary Operator “|” cannot be applied to two UIUserNotificationType operands
I am trying to register my application for local notifications this way: UIApplication.sharedApplication().registerUserNotificationSettings(UIUserNotificationSettings(forTypes: UIUserNotificationType.Alert | UIUserNotificationType.Badge, categories: nil)) In Xcode 7 and Swift 2.0 – I get error Binary Operator “|” cannot be applied to two UIUserNotificationType operands. Please help me. 4 Answers 4