[swift-evolution] KVO/KVC in Swift
clattner at apple.com
Thu Dec 3 15:00:38 CST 2015
On Dec 3, 2015, at 12:49 PM, Colin Cornaby <colin.cornaby at mac.com> wrote:
> I looked through the Swift Foundation this morning to see if there was evidence of KVO/KVC, but I didn't find any. Apologies if I missed anything. I'm assuming KVO/KVC is still incompatible with pure Swift, but I was looking for evidence that maybe something had been added in NSObject.
> Are there any plans to add anything like KVO or KVC to pure Swift, with maybe something the bridges to Obj-C KVO?
This is one of *many* things that we are interested in working on some day, but we need to stay focused on shorter term goals (like getting to ABI stability) to make sure we are successful with those. If you’re working on Apple platforms, Swift does interoperate with the Objective-C KVO implementation, using the “dynamic" keyword.
More information about the swift-evolution