Swift and Objective-c framework exposes its internals : <p>I’m trying to integrate Swift into an existing objective-c framework that has public, private and project files. In order for swift to access the project files, I added a modulemap that defines a new module (e.g <em>MyFramework_Internal</em>) by including all the project headers as explained here: <a href="http://nsomar.com/project-and-private-headers-in-a-swift-and-objective-c-framework/" rel="noreferrer">http://nsomar.com/project-and-private-headers-in-a-swift-and-objective-c-framework/</a></p>

<p>That setup is sort of working but one thing I was surprised to see is that now a client can access the internal classes by importing MyFramework_Internal (<em>@import MyFramework_Internal</em>). Is there a way to hide the module since it's only needed by the framework itself?
The modulemap looks like this now:</p>

<pre><code>module MyFramework_Internal {  
   header "Folder1/Baz.h"  
   header "Folder1/Folder2/Bar.h"  
   export *
} 
</code></pre>
