Is it possible to key-value code (KVC) with native Swift data structures such as Array and Dictionary? Key-Value coding is still available for NSFoundation structures within
It seems that KVC on native Swift objects is just not supported. Here's the most elegant workaround I've found:
var swiftarray: Array = [] // Fill the array with objects var array: NSArray = (swiftarray as NSArray).valueForKeyPath("key.path") as NSArray