Slide 7
Slide 7 text
objc code UIKit
Foundation
Frameworks
Frameworks
obj runtime
To see why, let’s take a look at the role Swift traditionally played in an iOS app.
When we add Swift code to an iOS project, Xcode, the IDE, would generate bridging headers for Swift to import and call into cocoa system frameworks like UIKit and
Foundation. This interoperability is made possible through LLVM module maps.
Now, you can compile Swift code on its own, but it’s not very useful. Swift itself only has a thin core library providing essential features like data structure and type
support. For even simple tasks like reading a file, your Swift code has to link against objective-c or system frameworks., most of those proprietary.
So it seems like, even if Apple open source Swift, its tight dependence on proprietary frameworks would limit its usability.