I am using ReactiveSwift to create a struct containing a dictionary. I want to listen for changes in the dictionary.
struct Model {
let a: MutableProperty<[String: Int]> = MutableProperty([:])
}
However, I'm having a hard time understanding how to bind this property to a listener. I want to do something like:
textView.reactive.text <~ model.a["key"]
Is there a solution to holding dictionaries in mutable properties?