We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.
Line 187 in NSObject+KeyValueObserving.swift:
let components = keyPath.components(separatedBy: ".") in
let components = keyPath.components(separatedBy: ".")
static func observe( _ object: NSObject, keyPath: String, options: NSKeyValueObservingOptions, action: @escaping (_ value: AnyObject?) -> Void ) -> AnyDisposable { }
Separating the keyPath String by components is not compatible with UserDefaults:
let key = "io.chuva.token" let producer = UserDefaults.standard.reactive.producer(forKeyPath: key)
The key is just a String and as such is valid for UserDefaults, however, the above producer will not emit any values.
I have included a test file. Test testKeyWithDotIsObserved() fails. DefaultsTests.swift.txt
testKeyWithDotIsObserved()
The text was updated successfully, but these errors were encountered:
Hello. 👋 Thanks for opening this issue. Due to inactivity, we will soft close the issue. If you feel that it should remain open, please let us know. 😄
Sorry, something went wrong.
No branches or pull requests
Line 187 in NSObject+KeyValueObserving.swift:
let components = keyPath.components(separatedBy: ".")
in
Separating the keyPath String by components is not compatible with UserDefaults:
The key is just a String and as such is valid for UserDefaults, however, the above producer will not emit any values.
I have included a test file. Test
testKeyWithDotIsObserved()
fails.DefaultsTests.swift.txt
The text was updated successfully, but these errors were encountered: