{"action":"closed","issue":{"url":"https://api.github.com/repos/bugfender/BugfenderSDK-iOS/issues/2","labels_url":"https://api.github.com/repos/bugfender/BugfenderSDK-iOS/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bugfender/BugfenderSDK-iOS/issues/2/comments","events_url":"https://api.github.com/repos/bugfender/BugfenderSDK-iOS/issues/2/events","html_url":"https://github.com/bugfender/BugfenderSDK-iOS/issues/2","id":67631376,"number":2,"title":"Swift support","user":{"login":"tonyxiao","id":696842,"avatar_url":"https://avatars.githubusercontent.com/u/696842?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyxiao","html_url":"https://github.com/tonyxiao","followers_url":"https://api.github.com/users/tonyxiao/followers","following_url":"https://api.github.com/users/tonyxiao/following{/other_user}","gists_url":"https://api.github.com/users/tonyxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyxiao/subscriptions","organizations_url":"https://api.github.com/users/tonyxiao/orgs","repos_url":"https://api.github.com/users/tonyxiao/repos","events_url":"https://api.github.com/users/tonyxiao/events{/privacy}","received_events_url":"https://api.github.com/users/tonyxiao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-10T16:27:28Z","updated_at":"2015-05-07T15:54:32Z","closed_at":"2015-05-07T15:54:32Z","body":"While objective c works seamlessly with Swift, C macros doesn't. In order to use Bugfender in swift something like this is needed\r\n\r\n```objc\r\n@interface Bugfender (Swift)\r\n\r\n+ (void)logWithFilename:(NSString *)filename\r\n             lineNumber:(int)lineNumber\r\n           functionName:(NSString *)functionName\r\n                    tag:(NSString *)tag\r\n                  level:(BFLogLevel)level\r\n                message:(NSString *)message;\r\n\r\n@end\r\n@implementation Bugfender (Swift)\r\n\r\n+ (void)logWithFilename:(NSString *)filename\r\n             lineNumber:(int)lineNumber\r\n           functionName:(NSString *)functionName\r\n                    tag:(NSString *)tag\r\n                  level:(BFLogLevel)level\r\n                message:(NSString *)message {\r\n    __BFLog(lineNumber, functionName, filename, level, tag, message);\r\n}\r\n\r\n@end\r\n```\r\n\r\nIt's not too bad, but it would be better if this function already existed within bugfender SDK itself so people trying to use it from swift don't have to do their own bridging. "}}