Fit Check is your private personal stylist for iOS. A native app designed to eliminate the stress of choosing a daily outfit by suggesting the perfect combination of clothes based on the local weather, your style, and the items you already have in your wardrobe.
Every judgement in the app is made by Apple Intelligence, running on your iPhone: no login, no account, no server deciding what you wear.
Fit Check has no hand-written styling rules to fall back on, so Apple Intelligence is required, not optional. Without it the app still opens, shows your closet and your saved looks, but it cannot add a garment or build an outfit β and it says so plainly instead of failing quietly.
- An iPhone that supports Apple Intelligence, with it switched on in Settings βΊ Apple Intelligence & Siri
- iOS 26.0 or later
- Outfits chosen by Apple Intelligence: Describe your day in your own words β any language β or just tap
Style Me. The model reads your whole closet, the live forecast and your preferences, and picks the look.Skipasks it for another. - Garments that describe themselves: Photograph a garment and Vision lifts it off its background, then Apple Intelligence reads the cut-out and fills in its category, warmth, colours and a name. Every field is a guess you can correct before saving.
- On-device and private: Your photos, your closet and every decision stay on the iPhone. The one exception is the forecast β see below.
- Favourites & history: Save the looks you like, and mark garments as worn so the model knows what you've had on recently.
- Fit Check: The daily control center. Shows the current weather, the recommended outfit of the day as a collage, and two actions:
Skipfor another look and the heart to save it. Wears are recorded from a garment's detail sheet ("Wore it today") or by swiping a saved look in Outfits. - Closet: Your garments as a grid or a list, with category filters and details. Press and hold one to start selecting, drag on to pick more.
- Outfits: The looks you saved. Swipe a card left to delete it.
- Settings: Customize themes (Light/Dark), morning reminder notifications, and AI settings (e.g. cold sensitivity).
Three on-device models, each doing the thing it is actually good at:
| Step | Model | What it decides |
|---|---|---|
| Cut the garment out of the photo | Vision β VNGenerateForegroundInstanceMaskRequest |
Which pixels are the garment |
| Read the cut-out | Vision β VNClassifyImageRequest |
Raw, noisy labels describing the image |
| Describe the garment | Apple Intelligence | Category, warmth, colour names, and what to call it |
| Build the outfit | Apple Intelligence | Which garments to wear, whether the day wants a layer, which accessories belong, what your request meant |
The model cannot suggest a garment you do not own. The schema for each request is built from the ids actually in your closet, so an id that isn't yours is not a rule it has been asked to respect β it is a token it cannot produce.
Four layers, each allowed to know only about the one below it. Views render, AppState decides what the UI shows, services hold the logic, models hold the data.
flowchart TB
subgraph app["App β composition root"]
FitCheckApp["FitCheckApp<br/>installs the SwiftData container"]
RootView["RootView<br/>four tabs + every overlay"]
AppState["AppState<br/>@Observable state machine"]
end
subgraph features["Features β SwiftUI only"]
Home["Home"]
Wardrobe["Wardrobe (Closet tab)"]
Outfits["Outfits"]
Settings["Settings"]
AddGarment["AddGarment<br/>capture β segment β review"]
Weather["Weather sheet"]
end
subgraph services["Services β logic, no view code"]
Segmenter["GarmentSegmenter<br/>Vision foreground mask"]
Classifier["GarmentClassifier<br/>Vision + Apple Intelligence"]
Generator["OutfitGenerator<br/>Apple Intelligence"]
Prompt["StylistPrompt<br/>prompt template"]
WeatherService["WeatherService<br/>CoreLocation + WeatherProvider seam"]
Exporter["ClosetExporter<br/>zip + index.json"]
Reminders["ReminderScheduler<br/>local notifications"]
end
subgraph data["Models β on device"]
ClothingItem["ClothingItem<br/>SwiftData"]
OutfitModel["Outfit<br/>SwiftData"]
UserSettings["UserSettings<br/>UserDefaults"]
end
FitCheckApp --> RootView
RootView --> features
features --> AppState
features --> services
AppState --> services
services --> data
AddGarment --> Segmenter --> Classifier
Home --> Generator --> Prompt
Weather --> WeatherService
Settings --> Exporter
Settings --> Reminders
WeatherService -.->|"today: coordinate rounded to 2 decimals"| OpenMeteo[("Open-Meteo")]
WeatherService -.->|"at release: compiled, not wired"| WeatherKit[("WeatherKit")]
Two rules keep the layers from bleeding into each other:
- Nothing outside
Features/imports SwiftUI. A decision that a view needs β which tab, whether the add flow is open, what the last error was β lives inAppState. - SwiftData models never cross an
await. They are bound to their context and are notSendable, so the caller takes a snapshot on the main actor (GarmentSnapshot,WeatherSnapshot) and the work happens on values.
Where to change what:
| You want to⦠| Change |
|---|---|
| Add or rename a garment attribute | ClothingItem, the schema in StylistPrompt, and the index in ClosetExporter |
| Change how a look is chosen | OutfitGenerator and the prompt in StylistPrompt |
| Change what the model is told about a garment | GarmentSnapshot in OutfitGenerator |
| Swap the weather provider | WeatherProviderKind β .active picks the implementation, WeatherSnapshot is the seam the rest of the app reads |
| Change the export format | ClosetExporter β bump Index.version and update its suite |
| Add a screen | A folder under FitCheck/Features/, then xcodegen generate |
| Restyle the app | Theme and GlassComponents |
English and Italian ship. Settings βΊ Language offers System, English and Italiano: System follows the device, including the per-app language iOS sets for Fit Check in the system's own Settings, and the in-app choice overrides both. Everything on screen reads the same resolved value β the catalog copy, the dates, and the language the stylist and the classifier are asked to answer in β so a label and a formatted date cannot disagree about which language is on.
Which languages Apple Intelligence can reply in is the system's list, not the app's. When the resolved language is not on it, the interface stays localised, the model answers in English, and the result screen says so instead of presenting an English look as if it were Italian.
Demo content in Mocks/ stays English: it is data, not copy. The folder is not committed β docs/demo-assets.md describes it and how to restore it.
- Platform: iOS 26+ (iPhone only)
- Language & UI: Swift 6 / SwiftUI
- AI & Machine Learning: Apple Intelligence via the Foundation Models framework (required) / Vision
- Data Storage: SwiftData (Local)
- Weather Data:
WeatherProviderβ Open-Meteo today (rounded coordinates, no account), WeatherKit as the release path
The forecast is the only thing that leaves the device, and it has two phases. Today's build sends Open-Meteo a coordinate rounded to two decimals β a little over a kilometre β and nothing else: no key, no account, nothing cached off-device. The place name on the sheet comes from MapKit's reverse geocoder, and that lookup leaves with the same two-decimal coordinate: one gate in WeatherService rounds the pair before either the namer or the provider is asked. The release build switches to WeatherKit, where the coordinate stays inside Apple's stack; that provider is compiled but not wired, because WeatherKit needs the paid Apple Developer Program and a free profile cannot carry its entitlement. The switch is three things β WeatherKit enabled on the App ID, the entitlement block in project.yml, and one value in WeatherProviderKind β and it is mandatory before release: Open-Meteo's free tier is non-commercial only. The ordered cutover β App ID capability, entitlement, the value, the rebuild, and what to re-verify on the phone β is docs/weatherkit-cutover.md.
This project uses XcodeGen β FitCheck.xcodeproj is generated from project.yml and is not committed to version control.
brew install xcodegen # first time only
xcodegen generate
open FitCheck.xcodeprojRegenerate the project (xcodegen generate) any time project.yml changes or after pulling changes that touch it.
FitCheck/Info.plist is generated from project.yml's info.properties and is gitignored: never edit or commit it, and add usage strings there instead. FitCheck/PrivacyInfo.xcprivacy is tracked source β the app declares no tracking and no collected data, and lists UserDefaults as its only required-reason API.
Export compliance. The bundle declares ITSAppUsesNonExemptEncryption: false: the app ships no encryption of its own, only HTTPS through the system stack β the forecast request to WeatherProvider and nothing else β which is the exempt case, and the declaration is a key under info.properties in project.yml, so every regenerate and every build carries it rather than an upload that answered the question by hand.
Two things behave differently there, and both look like bugs the first time:
-
Apple Intelligence is generally not reachable in the Simulator, so
Style Melands on "Couldn't style a look" and adding a garment stops at the review step. This is the app working as designed on a machine that has no model. Use a device with Apple Intelligence to exercise either path. -
There is no location until you set one, so the weather pill reads "No weather". Give the Simulator a fix and it resolves:
xcrun simctl location booted set 43.7228,10.4017The forecast is never a prerequisite for generating a look β without one the app assumes a mild day and says so.
xcrun simctl launch booted com.mxo01.FitCheck -uiTesting -seedDemoThe 39-garment wardrobe used for screenshots is not committed β the photographs are Unsplash stock, so they stay on the machine that has them. docs/demo-assets.md says what the folder holds and how to restore it. With Mocks/ restored, a -seedDemo launch fills the closet. Read only under that flag; without the folder the launch still succeeds and says the demo closet is unavailable.
A free Apple ID installs Fit Check on your own iPhone: no paid Apple Developer Program. The signature lasts seven days and is renewed by installing from Xcode again (step 7).
-
What you need. A Mac with Xcode 26 or later, an iPhone on iOS 26 or later, that Apple ID added under Xcode βΊ Settings βΊ Accounts, and the phone paired with the Mac β a cable for the first run.
-
Generate, then sign.
FitCheck.xcodeprojis generated and gitignored:xcodegen generate open FitCheck.xcodeproj
Select the
FitChecktarget βΊ Signing & Capabilities βΊ tick Automatically manage signing βΊ set Team to your personal team, the entry that reads "Your Name (Personal Team)". That is the whole signing setup: Xcode registers the App ID and mints the development certificate on the first run, andcom.mxo01.FitCheckis the author's own registered identifier, so it is already taken β choose your own inproject.ymlunder theFitChecktarget'ssettingsand regenerate (Xcode says "the app identifier cannot be registered" when it is not free):PRODUCT_BUNDLE_IDENTIFIER: com.yourname.FitCheck
The team lives in the generated project, so every
xcodegen generateerases it. When you regenerate on purpose, put it back in the same shell so the project comes out already signed:export FITCHECK_TEAM_ID=XXXXXXXXXX && xcodegen generate
Read those ten characters from a build that already signed β
codesign -dv FitCheck.appprintsTeamIdentifier=XXXXXXXXXXβ and not from the certificate's name. For a Personal Team the parenthetical inApple Development: you@example.com (β¦.)is a different identifier, and copying it produces "requires a development team" while looking entirely correct.A project generated without the variable has no team, which is all a Simulator build needs and not enough for a device. Building for a device from the command line rather than from Xcode also needs
-allowProvisioningUpdates; without it, automatic signing refuses with "unable to generate a profile". If you change the bundle identifier, thesimctlcommands elsewhere in this README need your identifier instead ofcom.mxo01.FitCheck. -
Install, trust, Developer Mode. Pick the iPhone as the run destination and press βR. iOS 26 requires Developer Mode β Settings βΊ Privacy & Security βΊ Developer Mode β which Xcode prompts for; the phone restarts and asks you to confirm. The first launch is then blocked as an untrusted developer: open Settings βΊ General βΊ VPN & Device Management βΊ Developer App, tap your Apple ID, Trust, then launch Fit Check again.
-
Apple Intelligence is required. Every iPhone from the 15 Pro onward supports it; the iPhone 15 and 15 Plus do not. Switch it on in Settings βΊ Apple Intelligence & Siri and let the model finish downloading. Without it Fit Check opens and shows your closet, but
Style Mereturns "Apple Intelligence isn't available" or "switched off", and a photographed garment stops at the review step with no name, category or colours. The Simulator cannot reach Apple Intelligence either, so both paths are only real on the phone. -
The permissions, in the order they appear. Location is asked for at launch β "Fit Check uses your location to suggest outfits based on the local weather" β and is optional: refuse it and the app assumes a mild day, says so in the composer and the conditions sheet, and still styles. Allowed, the conditions sheet names the place it read. Camera is asked for the first time you open the capture sheet. The photo library picker runs out of process, so no library-wide alert appears.
-
Demo closet (optional). The 39-garment wardrobe in
Mocks/(not committed βdocs/demo-assets.md) is read only under-seedDemo. In Xcode, Product βΊ Scheme βΊ Edit Scheme βΊ Run βΊ Arguments and add-seedDemo, then run. It seeds only into an empty store, so a second launch adds nothing; delete the app to seed again. A scheme edited by hand is lost on the nextxcodegen generate, because the project it lives in is regenerated.-seedClosetis a different flag: the five-garment fixture with one saved look that the UI tests assert against. -
Seven days, then reinstall. A free profile expires seven days after it is signed. The app then stops opening β not a crash, and nothing is lost. Reconnect the phone and press βR again: the profile is renewed and the app opens with its closet, looks and settings intact, because reinstalling over the same bundle identifier keeps the local store. Changing the bundle identifier is a different app and starts empty. One free Apple ID can keep three side-loaded apps on a device at a time; a fourth means deleting one first. Photos, garments, looks and every decision stay on the phone: the only traffic out is the forecast β a coordinate rounded to two decimals to Open-Meteo β and the MapKit lookup that names the place, which leaves with that same rounded coordinate.
-
If it does not work.
- "Signing for 'FitCheck' requires a development team" β the project was generated without the team, or a
xcodegen generatesince then erased the one Xcode had set.export FITCHECK_TEAM_ID=XXXXXXXXXX && xcodegen generate(step 2). The value is read at generate time, so exporting it now without regenerating changes nothing. - "Untrusted Developer" β step 3.
- The app stops opening after about a week, or iOS says it is no longer available β the profile expired; install from Xcode again (step 7).
- Xcode says the app identifier cannot be registered β the bundle identifier is still
com.mxo01.FitCheck; change it and regenerate (step 2). - Fit Check says it can't open the closet β the closet file on the phone was written by a different version of the app, so its garments and outfits cannot be read. Start over replaces that local file, and the closet and the saved outfits in it are gone; nothing is sent anywhere, and the app does not retry on its own.
- No WeatherKit, on purpose. A free profile cannot carry the WeatherKit entitlement, so this build reads Open-Meteo. The switch is three things β WeatherKit enabled on the App ID, the entitlement block in
project.yml, and one value inWeatherProviderKindβ all described in the forecast paragraph above. The ordered procedure for that switch isdocs/weatherkit-cutover.md.
- "Signing for 'FitCheck' requires a development team" β the project was generated without the team, or a
The unit tests use Swift Testing and run against the real SwiftData stack in memory, with the network and Apple Intelligence kept out of the way:
xcodegen generate
xcodebuild -project FitCheck.xcodeproj -scheme FitCheck \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
test -only-testing:FitCheckTests.github/workflows/ci.yml runs the same unit-test command on a macOS runner for every pull request that touches Swift: a ubuntu-latest job runs the Dynamic Type check first and the macOS job waits on it, and the simulator is resolved from the runner's device list. The run prints the coverage report and then runs scripts/coverage_gate.py, which requires 100% line coverage on every Swift file under FitCheck/ that the pull request touches. A file that cannot reach the standard from the unit target is named in scripts/coverage-allowlist.txt with its reason, one path per line; anything missing from that list has no excuse, and AGENTS.md documents the entries and why each one exists. On a push to main the gate does not run: the merge that landed there already ran it. A documentation-only pull request (markdown files, docs/) starts no CI run β the secret scan is the only job it triggers β because there is no Swift to measure and nothing for the simulator to prove, while a change under scripts/ still runs the gate. ClosetExporter is still checked by reading the archive it produces back, and Features/ is exercised by the UI tests.
Text scales with the system setting through @ScaledMetric, so scripts/check_dynamic_type.py fails any .system(size:) β or raw UIFont.systemFont(ofSize:) β added under FitCheck/ whose size is a literal or arithmetic rooted in one instead of a @ScaledMetric property declared in the same file; the only way past it is a reason on that same line (// dynamic-type-ok: <why it cannot scale>), for decoration or a measuring artefact that has no text to scale. A reason sits on the line it excuses rather than in a per-file allowlist, so a screen cannot be exempted quietly β each fixed size has to argue for itself. The check runs in its own ubuntu-latest job that the macOS job waits on, so a fixed text size fails the pull request before any simulator work starts. At the default text size the layout is unchanged: a @ScaledMetric starts at the value it replaced, so it is the larger settings that grow, not the baseline design.
This repo uses gitleaks to catch API keys, tokens, and other secrets before they get committed or pushed.
- Local pre-commit hook: enable it once per clone with:
Requires
git config core.hooksPath .githooks
gitleaksinstalled locally (brew install gitleaks). - CI check: the scan also runs automatically via the gitleaks GitHub Action on every pull request and on every push to
mainβ one scan per change β so secrets are caught even if the local hook is skipped.
Config lives in .gitleaks.toml; add allowlist entries there for confirmed false positives.
All rights reserved β the source is publicly readable and is not licensed for reuse, modification or redistribution. See LICENSE. The demo photographs, restored locally and never committed, stay under Unsplash's licence; third-party code and assets keep the licences they ship with.