{"action":"closed","issue":{"url":"https://api.github.com/repos/ReactiveX/RxSwift/issues/927","repository_url":"https://api.github.com/repos/ReactiveX/RxSwift","labels_url":"https://api.github.com/repos/ReactiveX/RxSwift/issues/927/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveX/RxSwift/issues/927/comments","events_url":"https://api.github.com/repos/ReactiveX/RxSwift/issues/927/events","html_url":"https://github.com/ReactiveX/RxSwift/issues/927","id":181251511,"number":927,"title":"UserDefaults subscribing issue","user":{"login":"minuscorp","id":3819883,"avatar_url":"https://avatars.githubusercontent.com/u/3819883?v=3","gravatar_id":"","url":"https://api.github.com/users/minuscorp","html_url":"https://github.com/minuscorp","followers_url":"https://api.github.com/users/minuscorp/followers","following_url":"https://api.github.com/users/minuscorp/following{/other_user}","gists_url":"https://api.github.com/users/minuscorp/gists{/gist_id}","starred_url":"https://api.github.com/users/minuscorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minuscorp/subscriptions","organizations_url":"https://api.github.com/users/minuscorp/orgs","repos_url":"https://api.github.com/users/minuscorp/repos","events_url":"https://api.github.com/users/minuscorp/events{/privacy}","received_events_url":"https://api.github.com/users/minuscorp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-05T20:02:58Z","updated_at":"2016-10-11T20:22:41Z","closed_at":"2016-10-11T20:22:41Z","body":"**Short description of the issue**:\r\n\r\n `NSObject` Reactive category `observe` does not work with `NotificationCenter` because is not KVO complant\r\n\r\n**Self contained code example that reproduces the issue**:\r\n\r\n```swift\r\n  NotificationCenter.default.rx.observe(String.self, \"someKeyPath\")\r\n    .subscribe(onNext: { value in print(value ?? \"\") })\r\nNotificationCenter.default.setString(\"Hello\", forKey: \"someKeyPath\")\r\n```\r\n\r\n**Xcode version**:\r\n\r\n```\r\n  Xcode 8.0\r\n```\r\n\r\n**Expected outcome**:\r\n\r\n  Receiving values of the UserDefaults changing over time. I'd like to know or have some tips (maybe using `UserDefaults.defaultsDidChangeNotification` over `NotificationCenter` reactive extension) about how and if its suitable as a RxCocoa future extension.\r\n\r\n**What actually happens**:\r\n\r\n  Nothing at all.\r\n\r\n:warning: Fields below are optional for general issues or in case those questions aren't related to your issue, but filling them out will increase the chances of getting your issue resolved. :warning:\r\n\r\n**Installation method**:\r\n  - [x] CocoaPods\r\n  - [ ] Carthage\r\n  - [ ] Git submodules\r\n\r\n**I have multiple versions of Xcode installed**:\r\n  (so we can know if this is a potential cause of your issue)\r\n  - [x] yes (which ones) 7.3 and 8.0\r\n  - [ ] no\r\n\r\n**Level of RxSwift knowledge**:\r\n  (this is so we can understand your level of knowledge\r\n    and formulate the response in an appropriate manner)\r\n  - [ ] just starting\r\n  - [ ] I have a small code base\r\n  - [x] I have a significant code base\r\n"}}
{"actor":{"display_login":"kzaher"}}