Swift: Today’s favorite thing (Take 2!)

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()
Screen Shot 2014-06-10 at 12.29.07 PM

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

Comments are closed.