title: How to acess swift 5 Result enum type in objective-c
body: <p>I have written a class method in swift-5 with it's parameter Result type, now I want to use this method in objective-c, is it possible? if yes, how?</p>
  <pre><code>@objc public class DemoClass :NSObject {
  
      @objc public func demoMethod(completion: @escaping (Result&lt;UIImage,Error&gt;) -&gt; 
       Void) {
               //some codes
        }
  }
  </code></pre>
  <p>As soon as I add @objc to method it throws an error: <strong>Method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C</strong></p>