title: How to use Swift non-NSObject subclass in Objective-C
body: <p>I'm experiencing some issues to use Swift in my Objective-C project.</p>
  
  <p>I use the following lib for example (<a href="https://github.com/Hearst-DD/ObjectMapper" rel="nofollow">https://github.com/Hearst-DD/ObjectMapper</a>). I've tried the thing to add @objc directive before my subclass but it's say that only classes that inherit from NSObject can be declared @objc. Seems it's related only to Swift 2.0</p>
  
  <p>So my question is, how I can use pure swift classes or libraries in my Objective-C projet ? If it's stil possible ...</p>
  
  <p>My model looks like this:
      import Foundation
      import ObjectMapper</p>
  
  <pre><code>class SSStreetAddressRequest: Mappable {
  
      var street:String?
      var city:String?
      var state:String?
      var zip:String?
  
      required init?(_ map: Map){
  
      }
  
      func mapping(map: Map) {
          street  &lt;- map["street"]
          city    &lt;- map["city"]
          state   &lt;- map["state"]
          zip     &lt;- map["zip"]
      }
  }
  </code></pre>
  
  <p>Mappable is a protocol:
  <a href="https://github.com/Hearst-DD/ObjectMapper/blob/master/ObjectMapper/Core/Mapper.swift" rel="nofollow">https://github.com/Hearst-DD/ObjectMapper/blob/master/ObjectMapper/Core/Mapper.swift</a></p>