Face Mask
A SwiftUI app that runs Google ML Kit face detection on the live camera feed and draws facial landmarks over it in real time. The starting point for AR face filters.
Overview
FaceTrackApp is a native iOS app that turns the front camera into a face tracker. Every frame goes through ML Kit's face detection on the device, with no network calls, and the bounding box and landmarks are drawn back over the camera preview. Once you can track a face reliably every frame, a mask is just something you draw on top.
How it's built
Four SwiftUI files that follow the data from camera to overlay:
FaceTrackAppApp.swift: app entry point.ContentView.swift: layout and state; connects the camera feed to the overlay.CameraView.swift: captures video and passes each frame to the detector.FaceOverlayView.swift: converts ML Kit's landmarks to screen coordinates and draws them.
Dependencies are handled with CocoaPods (one pod, GoogleMLKit/FaceDetection). Running detection on the device keeps it fast, and the camera frames never leave the phone.
Fernando Guzman