I've read the Swift documentation on Key-Value Observing.
But, how do I implement key-value observing for collections in Swift?
Here's the relevant Object-C documentation that's missing for Swift:
I've read the Swift documentation on Key-Value Observing.
But, how do I implement key-value observing for collections in Swift?
Here's the relevant Object-C documentation that's missing for Swift:
This works for me:
I got to this by translating the expected Obj-C KV signatures to Swift for the methods I was interested in. You should be able to get the others (for unordered to-many) working the same way.