title: Swift class not conforming to Objective C Protocol
body: <p>I have this objective c protocol as mentioned below:</p>
  
  <pre><code>@protocol Class1&lt;NSObject&gt;
  
  - (void)searchBy:(Enum1)searchType;
  
  @end
  </code></pre>
  
  <p>And i am trying to make a swift class conform to that protocol . The stub which Xcode generated for me is as follows:</p>
  
  <pre><code>func search(by searchType: Enum1) {
  }
  </code></pre>
  
  <p>But Xcode gives me an error while building that the class still doesn’t conform to protocol. What am i missing here?</p>