Inherit from a Swift class in Objective C
<p>I'm successfully mixing and matching Obj-C and Swift in an Xcode 7 project. However, I can't seem to figure out how, in an Objective C class, to inherit from a Swift class (and yes I know about declaring that Swift class as <code>@objc</code> for visibility). In this case the desired Swift superclass <code>MySwiftViewController</code> is a subclass of <code>UIViewController</code>. For now, in Obj-C, I'm inheriting directly from <code>UIViewController</code> and not gaining access to the capabilities I added in <code>MySwiftViewController</code>.</p>

<p>Here's what i understand:</p>

<p>-- To declare an Obj-C class as inheriting from something, that must be in the .h file after the ':':</p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;
@interface RootViewController : UIViewController &lt;UITableViewDataSource, UITableViewDelegate&gt;
@end
</code></pre>

<p>-- To make Swift classes visible, that is <code>#import</code>ed:</p>

<pre><code>#import "MyProject-Swift.h"
</code></pre>

<p>However, you cannot import the Swift auto-generated bridging header into the Obj-C <strong>.h</strong> file. You also cannot forward-declare an opaque superclass with <code>@class</code>. So, is this possible and how?</p>