Face Tracking in .NET MAUI on iOS
ARKit can track one or more faces in a scene, providing position, orientation, and a conforming mesh. David Britch shows how to run a face tracking session in a .NET MAUI iOS app and keep a 3D mesh aligned to the face as it moves and expresses.
What you’ll learn
- Wiring up the delegate — pointing your
ARSCNViewat a customARSCNViewDelegate - Creating the face mesh — building an
ARSCNFaceGeometrywhen anARFaceAnchoris detected - Keeping it aligned — updating the geometry in
DidUpdateNodeso it follows the face - Configuring the session — enabling face tracking with
ARFaceTrackingConfigurationand the front camera - Where this leads — overlaying content like glasses frames for try-on experiences
Read the full post for the complete handler and delegate code, and note that ARKit requires a physical iPhone.