Incorrect module for custom class in Interface Builder
<p>When I use some custom UI class in Interface Builder from module/frameworks everything work perfect. But if I write extension for this class in my project and set custom class(in Interface Builder), Interface Builder will set module of custom class is my project. And when I try to use this custom class in code, Xcode say:</p>

<blockquote>
<pre><code>"Unknown class _TtC9*modulename*18*MyCustomLabel* in Interface Builder file."
</code></pre>
</blockquote>

<p>An example:</p>

<ul>
<li>TTTAttributedLabel added to new project as separate module(or throw cocoapods).</li>
<li>Add simple UILabel in storyboard and set custom class as TTTAttributedLabel</li>
<li>Add Outlet to code and print(NSLog) this label.</li>
</ul>

<p>Xcode write that it is TTTAttributedLabel.</p>

<ul>
<li>add an empty extension to TTTAttributedLabel</li>
</ul>

<blockquote>
<pre><code> extension TTTAttributedLabel{ }
</code></pre>
</blockquote>

<ul>
<li>remove and set again custom class for the label in Interface Builder;</li>
<li>print(NSLog) the label;</li>
</ul>

<p>And Xcode write warning message and say that our label is UILabel.</p>

<p>Is it a Interface Builder bug or maybe I must write something before extension for modules?</p>

<p>Info: swift, xcode6.3-7.3</p>