[swift-evolution] KVO/KVC in Swift
adrian.kashivskyy at me.com
Thu Dec 3 15:19:55 CST 2015
Until KVC/KVO is supported, you may be interested in using constructs like Observable<T>. Here are some illustrative libraries that make use of it: SwiftBond/Bond <https://github.com/SwiftBond/Bond>, slazyk/Observable-Swift <https://github.com/slazyk/Observable-Swift>.
Pozdrawiam – Regards,
> Wiadomość napisana przez Chris Lattner <clattner at apple.com> w dniu 03.12.2015, o godz. 22:00:
> 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?
> Hi Colin,
> 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.
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution