Point a phone camera at a bowl of noodles or a plate of stir-fry, wait a moment for a vision model to return calorie and macro numbers, and the flow looks effortless in a demo. In a real food diary, that shortcut breaks fast. A flat photograph hides bowl depth, conceals cooking oil, and turns a rough portion guess into a permanent record. Once wrong numbers land straight on a daily chart, people stop trusting the log or spend mealtime deleting bad rows.
We built around that failure mode in CalShutter, an iOS calorie and macro tracker from TaoApex. I work on TaoApex's iOS apps, and much of our design work went into stopping a camera estimate from masquerading as an exact measurement. CalShutter provides calorie, protein, carb, and fat estimates plus general nutrition information. It is not a medical device and makes no diagnosis or disease claims, so anyone making dietary changes still needs advice from a qualified professional. Handling the output as an editable estimate keeps both product UX and health boundaries honest.
Handling the model output as an editable draft
Portion size is the dominant unknown in food photography. Vision models can usually spot visible ingredients on a plate, like rice or grilled chicken, yet they cannot measure how deep a bowl goes or how much butter sits in a sauce. Writing a model response straight into persistent storage locks in the weakest part of the prediction. Every daily total and macro chart then inherits that error silently.
Granularity matters just as much as the review gate itself. If a photo captures a plate with multiple components and the backend hands back a single lumped calorie total, the user has no clean way to fix the one ingredient that looks wrong. Breaking the draft down into individual items and portions changes the interaction completely. You can keep the parts the model recognized properly, resize the portion that looks off, or delete a misread garnish without throwing away the whole meal.
CalShutter puts that review step squarely between inference and storage. Taking a photo returns an unconfirmed draft of food items, estimated calories, and protein, carbs, and fat. Before saving, the user can edit items, adjust portions, or use voice logging and manual entry instead. The model supplies a fast starting point, while the user makes the final call.
In code, the cleanest way to enforce this boundary is separating the ephemeral draft from your persisted log model so unconfirmed estimates cannot leak into storage:
struct MealDraft { var items: [DraftFoodItem] // Editable food names, portions, and macros var source: EntrySource // .photo, .voice, or .manual var isConfirmedByUser: Bool // Storage rejects drafts until true } Your persistence layer only needs one guard: records starting from .photo or .voice stay in volatile view state until isConfirmedByUser becomes true on save. Canceling the review sheet leaves the database untouched.
Keeping the AI call stateless and per-photo
Once the draft is disposable, the next question is how much history the model needs. Keeping a persistent thread per user tempts an app into carrying yesterday's habits into today's guess. That creates overlapping problems: wrong assumptions bleed across meals, and sensitive eating records linger in inference context longer than necessary.
Every AI call in CalShutter is per-photo and stateless. AI analysis runs in real time and is not retained after the result is returned, while meal photos and health metrics stay on the user's account with account deletion available in Settings. Because each request stands alone, a bad guess at lunch never poisons dinner, and no rolling food profile builds up inside an inference pipeline.
Routing both photo recognition and voice logging into the same stateless draft step also keeps the client architecture predictable. Whether an entry starts from an image or a spoken meal description, the inference call produces the exact same unconfirmed item list and drops away once the payload arrives on the device. Durable user state lives only in the confirmed log, never inside a long-lived prompt session.
Native platform scope follows the same restraint. Built for iOS 17.0 and later, CalShutter keeps its HealthKit footprint minimal by requesting read access for body weight only. Narrow inputs make data boundaries easy to verify and straightforward to explain to privacy-conscious users.
Putting a hard daily quota on the free tier
Stateless calls and review sheets still leave one operational leak: unbounded retries. Without a daily cap, users often photograph the same plate from multiple angles hoping for a cleaner number. That burns inference compute without solving portion uncertainty, which is almost always fixed faster on the review screen.
CalShutter pairs unlimited manual meal logging with a hard daily quota on AI calls in the free tier. Free users get unlimited manual entry, the daily macro dashboard, and Apple Health weight read, plus 2 AI photo or voice recognitions per day. Pro unlocks unlimited AI recognition and full meal log history from $4.99/month or $39.99/year via an auto-renewable subscription managed in Apple ID settings. Keeping manual entry unlimited ensures hitting the 2-call quota never blocks anyone from logging their day.
From an engineering standpoint, a hard limit beats silent throttling every time. Quietly slowing down responses or degrading model quality when free usage climbs just makes the app feel broken. A visible daily count is clear upfront, lets people budget their AI calls intentionally, and leaves the core manual tracker fully usable at all times.
That constraint also shapes healthier day-to-day habits. With 2 free AI calls a day, people save the camera or voice shortcut for messy mixed plates where manual entry is tedious, and type simple items directly. The quota steers automation toward high-friction meals while keeping inference costs predictable.
A decision rule before shipping AI logging
Most bugs in AI-assisted trackers happen when automated entry bypasses the validation rules manual forms already enforce. Before shipping a vision or voice feature, run every returned field through a simple side-by-side check:
If the model identifies a visible item label, pre-fill it as an editable field. If the model guesses hidden volume, sauce, or density, require explicit user confirmation before writing anything to persistent history.
Following that split keeps camera logging practical. Photos speed up entering complex meals, stateless calls keep real-time analysis isolated and disposable, and the review step ensures every saved record reflects what the user actually confirmed.
If you want to see the review step in the shipped product: CalShutter is an iPhone app (iOS 17+) that turns a meal photo into editable calorie and macro estimates before anything is saved — App Store, and the free/Pro split plus the current limits are written out at taoapex.com/en/products/calshutter.

