Dynamic method swapping

I noticed during the Mastering Xcode Previews talk during WWDC this year, the presenter mentioned that they’re using dynamic method swapping to generate the preview body as shown on this slide:

Is that a new feature in Swift? It would be great to be able to use it with my unit testing.

The details of this were previously discussed in this thread.

3 Likes