Because importing Foundation doesn’t always magic everything the way it’s supposed to (at least yet). Quick warning. I’m pretty sure the following isn’t a preferred approach to anything but it’s a pretty neat thing to stumble across nonetheless. Behold bridgeToObjectiveC()
You probably should be using (myDict as NSDictionary).allKeys as the preferred approach. So far, I’ve tested both in the Sandbox and in test apps running on device.
Thanks, Remy Demarest and Simon Yang