{"action":"created","issue":{"url":"https://api.github.com/repos/getsentry/sentry-swift/issues/15","repository_url":"https://api.github.com/repos/getsentry/sentry-swift","labels_url":"https://api.github.com/repos/getsentry/sentry-swift/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/sentry-swift/issues/15/comments","events_url":"https://api.github.com/repos/getsentry/sentry-swift/issues/15/events","html_url":"https://github.com/getsentry/sentry-swift/issues/15","id":156613534,"number":15,"title":"Why @objc?","user":{"login":"dcvz","id":2475932,"avatar_url":"https://avatars.githubusercontent.com/u/2475932?v=3","gravatar_id":"","url":"https://api.github.com/users/dcvz","html_url":"https://github.com/dcvz","followers_url":"https://api.github.com/users/dcvz/followers","following_url":"https://api.github.com/users/dcvz/following{/other_user}","gists_url":"https://api.github.com/users/dcvz/gists{/gist_id}","starred_url":"https://api.github.com/users/dcvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcvz/subscriptions","organizations_url":"https://api.github.com/users/dcvz/orgs","repos_url":"https://api.github.com/users/dcvz/repos","events_url":"https://api.github.com/users/dcvz/events{/privacy}","received_events_url":"https://api.github.com/users/dcvz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-24T21:27:41Z","updated_at":"2016-05-24T21:55:09Z","closed_at":null,"body":"Hey guys, I'm currently working on a PR to fix some issues I was having with this new library. One thing I'd like to know is why there's such a spread use of @objc tags. As I don't see any inter-operability with Objective-C code."},"comment":{"url":"https://api.github.com/repos/getsentry/sentry-swift/issues/comments/221413455","html_url":"https://github.com/getsentry/sentry-swift/issues/15#issuecomment-221413455","issue_url":"https://api.github.com/repos/getsentry/sentry-swift/issues/15","id":221413455,"user":{"login":"joshdholtz","id":401294,"avatar_url":"https://avatars.githubusercontent.com/u/401294?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdholtz","html_url":"https://github.com/joshdholtz","followers_url":"https://api.github.com/users/joshdholtz/followers","following_url":"https://api.github.com/users/joshdholtz/following{/other_user}","gists_url":"https://api.github.com/users/joshdholtz/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdholtz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdholtz/subscriptions","organizations_url":"https://api.github.com/users/joshdholtz/orgs","repos_url":"https://api.github.com/users/joshdholtz/repos","events_url":"https://api.github.com/users/joshdholtz/events{/privacy}","received_events_url":"https://api.github.com/users/joshdholtz/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T21:55:09Z","updated_at":"2016-05-24T21:55:09Z","body":"@dcvz Thanks for the question! The '@objc' is needed to make methods available to use in Objective-C. You can see how to use the library in Objective-C here - https://github.com/getsentry/sentry-swift/blob/master/Examples/ObjCExample/ObjCExample/ViewController.m. Without the `@objc`, a lot of those classes/methods would not be able to be called from Objective-C.\r\n\r\nIf you believe there is another way to get this done, please let me know 😊  I was not a _huge_ fan of putting in all the @objc but this Swift client is intended to be used in both Swift and Objective-C environments so that only one codebase needs to be maintained. "}}
{"actor":{"display_login":"joshdholtz"}}