title: 'init' is unavailable when trying to use swift object in objective-c class
body: <p>I have a swift object but when I try using it in an objective-c class I get <code>'init' is unavailable</code>, why is this?</p>
  
  <p>my Swift class is as shown below:</p>
  
  <pre><code>import Foundation
  
  @objc public class OsonOptions : NSObject {
      @objc var isWebview: Bool
      @objc var key: String
      @objc var token: String
      @objc var products : Array&lt;String&gt;
      var env: Environment
      @objc var clientName: String
      public init(isWebview: Bool,key: String,token: String,products:Array&lt;String&gt;,env: Environment,clientName: String) {
          self.isWebview = isWebview
          self.key = key
          self.token = token
          self.products = products
          self.env = env
          self.clientName = clientName
      }
  }
  </code></pre>
  
  <p>My objective-c class that uses it is as shown below:</p>
  
  <pre><code>#import "MyFancyLibrary.h"
  #import &lt;OsonWidget/OsonWidget-Swift.h&gt;
  
  @implementation MyFancyLibrary
  RCT_EXPORT_MODULE()
  RCT_EXPORT_METHOD(greetings:(RCTResponseSenderBlock)callback){
  
      OsonOptions *osonOptions = [[OsonOptions alloc] init];
  
      NSString* someString = @"random";
      callback(@[someString]);
  }
  @end
  </code></pre>
  
  <p>this is the line of code that has the error: <code>OsonOptions *osonOptions = [[OsonOptions alloc] init];</code></p>