I tried your code and it correctly detected 2 faces in the image supplied. This is with iPad Playgrounds 4.5.1.
I didn’t put the source image in a .xcassets folder though, instead I used the Add File > Photo button at the top left.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: