ios – Swift migration: ‘Notification’ is ambiguous for kind lookup on this context’ in some locations

[ad_1]

I am making a migration from Swift 2.3 to Swift 4 with numerous ache and nicely, I am ending the migration however I am nonetheless getting an error in some locations of the code:

Notification' is ambiguous for kind lookup on this context

I recieved earlier than this error however now I am getting this in locations like

var notifications = [Notification]
self.notifications = (sql.execute() as NSArray) as! [Notification]

and

 func isAlreadyExists(notification: Notification) -> Bool {

I believed to vary Notification identify however the app shouldn’t be mine and is large… very large and isn’t potential to do that and nicely, I do not know what to do.

Thanks upfront

[ad_2]

Leave a Reply