I want to enable ARFaceTrackingConfiguration on my app but i am having problem with it. I am using iPhone 7 which has Apple A10 Fusion-64 bit chip but still getting that fatal error. Can you help me with this?
I enabled permissions on the info.plist and i am cheking .isSupported in ARFaceTrackingCOnfiguration
let configuration = ARFaceTrackingConfiguration()
sceneView.session.run(configuration)
guard ARFaceTrackingConfiguration.isSupported else {
fatalError("Face tracking is not supported on this device")
}
is it because the front camera of Iphone 7 is not TrueDepth camera?
You can't run
ARFaceTrackingConfiguration
without TrueDepth camera. Check the documentation for more infoYou can also check if the device can run this configuration by calling
ARFaceTrackingConfiguration.isSupported