- Virtually all of the iOS API is accessible seamlessly from Swift.
- A few special data types are handled specially and powerfully via bridging.
- Bridging means that you can use them interchangeably.
NSString is bridged to
NSArray is bridged to
NSDictionary is bridged to
Bool are all bridged to
NSNumber (but not vice-versa).
- To get from
NSNumber to these types use
Double are bridged to the C types