{"action":"closed","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1238","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1238/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1238/events","html_url":"https://github.com/realm/realm-cocoa/issues/1238","id":52236345,"number":1238,"title":"New Swift APIs","user":{"login":"shmidt","id":1472370,"avatar_url":"https://avatars.githubusercontent.com/u/1472370?v=3","gravatar_id":"","url":"https://api.github.com/users/shmidt","html_url":"https://github.com/shmidt","followers_url":"https://api.github.com/users/shmidt/followers","following_url":"https://api.github.com/users/shmidt/following{/other_user}","gists_url":"https://api.github.com/users/shmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/shmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmidt/subscriptions","organizations_url":"https://api.github.com/users/shmidt/orgs","repos_url":"https://api.github.com/users/shmidt/repos","events_url":"https://api.github.com/users/shmidt/events{/privacy}","received_events_url":"https://api.github.com/users/shmidt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-17T12:51:30Z","updated_at":"2015-03-27T20:57:05Z","closed_at":"2015-03-27T20:57:05Z","body":"```swift\r\nextension RLMObject {\r\n    // Swift query convenience functions\r\n    public class func objectsWhere(predicateFormat: String, _ args: CVarArgType...) -> RLMResults {\r\n        return objectsWhere(predicateFormat, args: getVaList(args))\r\n    }\r\n\r\n    public class func objectsInRealm(realm: RLMRealm, _ predicateFormat: String, _ args: CVarArgType...) -> RLMResults {\r\n        return objectsInRealm(realm, `where`: predicateFormat, args: getVaList(args))\r\n    }\r\n}\r\n```\r\n\r\nAs for me, I would like to see something like:\r\n\r\n```swift\r\nextension RLMObject {\r\n    // Swift query convenience functions\r\n    public class func objects(where predicateFormat: String, _ args: CVarArgType...) -> RLMResults {\r\n        return objectsWhere(predicateFormat, args: getVaList(args))\r\n    }\r\n\r\n    public class func objects(inRealm realm: RLMRealm, _ predicateFormat: String, _ args: CVarArgType...) -> RLMResults {\r\n        return objectsInRealm(realm, `where`: predicateFormat, args: getVaList(args))\r\n    }\r\n}\r\n```"}}