{"action":"opened","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/2840","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2840/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2840/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/2840/events","html_url":"https://github.com/realm/realm-cocoa/issues/2840","id":116412706,"number":2840,"title":"Detect Swift computed properties by checking for the existence of auto-synthesized ivars","user":{"login":"mrackwitz","id":1389011,"avatar_url":"https://avatars.githubusercontent.com/u/1389011?v=3","gravatar_id":"","url":"https://api.github.com/users/mrackwitz","html_url":"https://github.com/mrackwitz","followers_url":"https://api.github.com/users/mrackwitz/followers","following_url":"https://api.github.com/users/mrackwitz/following{/other_user}","gists_url":"https://api.github.com/users/mrackwitz/gists{/gist_id}","starred_url":"https://api.github.com/users/mrackwitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrackwitz/subscriptions","organizations_url":"https://api.github.com/users/mrackwitz/orgs","repos_url":"https://api.github.com/users/mrackwitz/repos","events_url":"https://api.github.com/users/mrackwitz/events{/privacy}","received_events_url":"https://api.github.com/users/mrackwitz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/Enhancement","name":"Enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-11T20:14:46Z","updated_at":"2015-11-11T20:14:46Z","closed_at":null,"body":"Assumingly, that this Swift code, won't synthesize an ivar for `bar`:\r\n```swift\r\nclass Foo : Object {\r\n    dynamic var foo: String = \"foo\"\r\n    var bar: String {\r\n        get { return foo }\r\n        set { foo = newValue }\r\n    }\r\n}\r\n```\r\n\r\nIf we could detect by the absence of this ivar, that `bar` is actually a fully computed property, we could avoid having users to add them to `ignoredProperties` when defining their schema classes.\r\n\r\nThat would be helpful in cases like #2815."}}