title: Passing a Dictionary object from Obj-C to Swift
body: <p>In my obj-C code base, I'm calling passing a NSDictionary object to a Swift class:</p>
  
  <p><strong>AppDelegate.m</strong></p>
  
  <pre><code>-(void)application:(UIApplication *) application didReceiveRemoteNotification: (NSDictionary *)dictionaryInfo {
      ...
      [[SwiftClass sharedInfo] setInfo:dictionaryInfo];
      ...
  }
  </code></pre>
  
  <p><strong>SwiftClass.swift</strong></p>
  
  <pre><code>class SwiftClass: NSObject {
  
      static let sharedInfo = MYQNotificationInfo()
  
      func setInfo(notification:Dictionary&lt;String,String&gt;) -&gt; Void {
           // runtime error happens before this line
      }
  </code></pre>
  
  <p>}</p>
  
  <p>The app compiles but when I receive a push notification, it crashes.  Using Xcode debugger, I set a breakpoint at the setInfo method within AppDelegate and can see that the push notification is received.  But, once I step into the setInfo method, then the app crashes, never actually making it into the function.  Thus, I suspect that the I'm not setting the parameters within setInfo properly.</p>
  
  <p>Is this an issue where I'm not passing in the Dictionary object in properly?</p>