Skip to content

Instantly share code, notes, and snippets.

@Eluss
Created October 2, 2015 15:42
Show Gist options
  • Save Eluss/0f6eb24632c0328db568 to your computer and use it in GitHub Desktop.
Save Eluss/0f6eb24632c0328db568 to your computer and use it in GitHub Desktop.
func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: ([NSObject : AnyObject]?) -> Void) {
let message = userInfo?["message"] as! String
let event = Event(name: "test", details: "test", date:NSDate())
NSKeyedArchiver.setClassName("Event", forClass: Event.self)
NSKeyedArchiver.archivedDataWithRootObject(event)
let dictionary = ["event" : event]
reply(dictionary)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment