While the constants you’ve referenced are all C macros, and thus the values are right there in the C header, there are a lot of constants exported by the system where that’s not the case. For example, UIApplicationDidEnterBackgroundNotification. The Swift import style makes perfect sense for those constants. ps I’m not on the Swift team, so can’t give you an authoritative answer to ‘why’ questions.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
Programming Languages
SubTopic:
Swift
Tags: