Comparing Faces in iOS.

Into my application which is in iOS, I have two photos, one photo has been grabbed from the Identity Card of a User, and another one is, the User takes a Selfie, in the end, there will be a task to compare those two faces and have a similarity response, whether they refer to the same person or not, I was wondering there is another way apart of having an MLModel into my app, for e.g. there is a Built-in framework or class that I can use in swift?