I am trying to learn Swift and am going through a tutorial on push notifications.
let settings = UIUserNotificationSettings(forTypes: [.Alert, .Badge , .Sound], categories: nil)
Is giving me the error
"Type of expression is ambiguous without more context".
I copy/pasted this line directly from a tutorial and have found this same line used on StackOverFlow.
What am I doing wrong?
I am using Xcode 8.