title: Calling Swift class method from Objective-C
body: <p>I have this function in Swift</p>
  
  <pre><code>class func someFunction(idValue: Int, completionHandler: @escaping (_ jsonData: JSON) -&gt; ()) {
          (...)
          if (some validation) {
              completionHandler(jsonData)
          } else {
              completionHandler(JSON.null)
          }
  
      }
  </code></pre>
  
  <p>Now I want to call that function from Objective-C. What I am doing is this:</p>
  
  <pre><code>[[ClassName  new] someFunction:self.sesionId completionHandler:^{
      }];
  </code></pre>
  
  <p>But is throwing "No visible @interface for 'ClassName' declares the selector 'someFunction:completionHandler:'</p>
  
  <p>How can I call this function?</p>