Fernando Guzman

June 2025 · Swift, SwiftUI, ML Kit · Code on GitHub

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.

Illustration of profile faces with a landmark mesh

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:

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.

Back to projects