Reputation: 3952
I noticed over the years that Apple has dropped prefixes such as 'NS' when using Swift. Now as I'm going through a local notifications tutorial, I see that UIUserNotificationSettings has been deprecated and it asks that we use UNNotificationSettings instead. I understand that 'NS' stood for Next Step so is there a correlation possibly that 'UN' stands for something?
Upvotes: 3
Views: 448
Reputation: 100503
As a general rule every item inside a framework takes it's name prefix
UIButton -> UIKit -> User Interface
AVAudioPlayer -> AVFoundation -> Audio Video
UNNotification -> UserNotifications - > User Notification
Upvotes: 5
Reputation: 318794
Classes such as UNNotificationSettings
and other UNNotification...
classes are in the UserNotifications
framework. So it seems the "UN" is for User Notifications.
Upvotes: 8