To my understanding the real reason why this is currently not possible is rooted in the limitations of struct Mirror, which, for instance, lacks the support for writing and the reflection of methods.
So it boils down to the following: Are there currently any plans to extend the capabilities of struct Mirror to support better reflection?
Trying to answer this question I found this post:
where Joe Groff says there is something planned.
Are there any news on this, maybe a rough timeframe or Swift version for which to expect better reflection support?
Am 12.06.2016 um 20:40 schrieb Philippe Hausler <firstname.lastname@example.org>:
Both KVC and KVO require dynamic dispatching and selector manipulation that is not present in swift-corelibs-foundation (since everything is based on swift objects).
On Jun 12, 2016, at 10:54 AM, Lars Sonchocky-Helldorf via swift-corelibs-dev <email@example.com> wrote:
it came to my attention that the NSKeyValueCoding protocol which is a part of the Darwin-(ObjC-)Foundation (see https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueCoding_Protocol/ ) is somehow omitted here: https://github.com/apple/swift-corelibs-foundation/blob/master/Docs/Status.md
Was this done on purpose or is the implementation of NSKeyValueCoding still forthcoming?
swift-corelibs-dev mailing list