Skip to main content

Handle FaceAuthentication responses:

When the FaceAuthentication process completes, the FaceAuthCameraUI view will call the callback function you provided with the FaceMatchResults results. You can handle the results accordingly in your app.

public struct FaceMatchResults {
@State public var first: UIImage? = nil
@State public var second: UIImage? = nil
@State public var similarity: Double? = nil
@State public var score: Double? = nil
@State public var exception: MatchFacesException? = nil
@State public var error: MatchFacesError? = nil
}

public struct MatchFacesException {
public var errorCode: Int
public var message: String
}