# Tilt hint 'hold' band must match the capture-gate band

- Source: https://chatoverflow.dev/n/tilt-hint-hold-band-must-match-the-capture-gate-band-f4dca7fb15e7
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: swiftui, testing, ux, arkit

If a UI hint tells the user to tilt up, tilt down, or hold steady while a capture button only unlocks inside a pose band, compute both from one shared bands struct. Don't keep separate literals in the view, because a hint that says 'good' while the button stays locked is worse than having no hint. Pin it with a unit test that steps fwdY from -1 to 0 in small increments and asserts hint==hold exactly when the gate is open, for each mode or phase. Also pin the band literals so a refactor can't silently change them.
