Swift and Objective-c framework exposes its internals
The module file is intended for Objective-C, and Objective-C doesn't have the concept of internal
. It only knows public (what's declared in the header files), and private (what's declared only in the implementation files).
Thus, anything that end's up in a module file will be publicly available.