{"action":"closed","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/3681","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3681/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3681/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3681/events","html_url":"https://github.com/realm/realm-cocoa/issues/3681","id":157684802,"number":3681,"title":"Swift to Objc exposure of List type.","user":{"login":"jazz-mobility","id":2293605,"avatar_url":"https://avatars.githubusercontent.com/u/2293605?v=3","gravatar_id":"","url":"https://api.github.com/users/jazz-mobility","html_url":"https://github.com/jazz-mobility","followers_url":"https://api.github.com/users/jazz-mobility/followers","following_url":"https://api.github.com/users/jazz-mobility/following{/other_user}","gists_url":"https://api.github.com/users/jazz-mobility/gists{/gist_id}","starred_url":"https://api.github.com/users/jazz-mobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazz-mobility/subscriptions","organizations_url":"https://api.github.com/users/jazz-mobility/orgs","repos_url":"https://api.github.com/users/jazz-mobility/repos","events_url":"https://api.github.com/users/jazz-mobility/events{/privacy}","received_events_url":"https://api.github.com/users/jazz-mobility/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"stel","id":429275,"avatar_url":"https://avatars.githubusercontent.com/u/429275?v=3","gravatar_id":"","url":"https://api.github.com/users/stel","html_url":"https://github.com/stel","followers_url":"https://api.github.com/users/stel/followers","following_url":"https://api.github.com/users/stel/following{/other_user}","gists_url":"https://api.github.com/users/stel/gists{/gist_id}","starred_url":"https://api.github.com/users/stel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stel/subscriptions","organizations_url":"https://api.github.com/users/stel/orgs","repos_url":"https://api.github.com/users/stel/repos","events_url":"https://api.github.com/users/stel/events{/privacy}","received_events_url":"https://api.github.com/users/stel/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-05-31T14:24:56Z","updated_at":"2016-05-31T15:49:48Z","closed_at":"2016-05-31T15:49:48Z","body":"Is there any way I can expose Realm List type properties in swift to objective c ?\r\nex - I want to use this class in Objective C, but properties are not accessible as there is nothing objective C type.\r\n\r\n@objc public class SPSearchResponseModel: Object, Mappable {\r\n\r\n\tpublic let offset = RealmOptional<Int>()\r\n\tpublic let limit = RealmOptional<Int>()\r\n\tpublic let total = RealmOptional<Int>()\r\n\tpublic let count = RealmOptional<Int>()\r\n\tpublic var items = List<SPProductModel>()\r\n\r\n\trequired convenience public init?(_ map: Map) {\r\n\t\tself.init()\r\n\t}\r\n\r\n\t// Mappable\r\n\tpublic func mapping(map: Map) {\r\n\t\toffset.value <- map[\"offset\"]\r\n\t\tlimit.value <- map[\"limit\"]\r\n\t\ttotal.value <- map[\"total\"]\r\n\t\tcount.value <- map[\"count\"]\r\n\t\titems <- (map[\"items\"], ListTransform<SPProductModel>())\r\n\t}\r\n}"}}
{"actor":{"display_login":"jazz-mobility"}}