If you maintain Objective-C or C libraries and want to expose cleaner syntax for Swift, this section is for you! We now have the ability to provide more control over how constants, global functions, and generics are imported from Objective-C and C into Swift.
Constants with global scope, defined in header files, are imported with the same global scope in Swift. In many cases, it would be more helpful to have related constants grouped together. In Swift 3, you can now annotate your type declarations with NS_STRING_ENUM
or NS_EXTENSIBLE_STRING_ENUM
to have those declarations imported as members of a common type.