I posted a question in the playgrounds section of the forums regarding an issue with Metal in Swift playgrounds: Metal playground not setting up MTLLibrary with makeDefaultLibrary(), but I figured someone might better know on a general level whether Metal even works in playgrounds or not. I'm not sure if I'm putting my shader file in the correct location in the playground - I tried putting it in both the sources and resources folders of the playground.
I believe these playgrounds created by others use Metal. I do not know if they work for iPad, but they certainly compile and run in Xcode:
- http://metalkit.org/2016/12/30/raymarching-in-metal.html
- http://metalkit.org/2017/11/30/working-with-particles-in-metal-part-3.html
There should be some other blogs that have a focus on Metal tutorials using Playground.