Setup FaceAnchor
Before you begin, please update iOS ARCloud SDK to version 0.4.16
or later. You may reset the package cache in Xcode if a new function did not show up.
FaceAnchor only works with Apple devices that support FaceID. You can see the device list to learn more https://support.apple.com/en-us/HT209183 (opens in a new tab)
To add face detection to AR experience, simply add frontCameraMode: Bool
when you init service. An AR session will be switched to the front camera.
let graffityARCloud = GraffityARCloud(
accessToken: "YOUR_ACCESS_TOKEN",
frontCameraMode: true
)
let arCloudUIView = ARCloudUIView(service: self.graffityARCloud)