| Filename | Latest commit message | Latest commit date |
|---|---|---|
TestFlight build 147, iPhone Duo: "Moving up seems to routinely skip a line. Also, it moves much faster than on the normal iOS keyboard." The space-bar trackpad was measured beside Apple's keyboard on the Studio simulators: iPhone 17 Pro on iOS 27.2 and 26.5, the iPhone Duo folded and unfolded, in text views of known width and font and in Safari. One cause is a defect, fixed here. Past the first or last line of the text the field shares, the trackpad steps just past it and waits for the host to show more. At the text's real start or end the host ignores that step and its context stays as it was. TrackpadCursor read that unchanged context as the text just past the known text, added it again, and stepped again, on every move. On the Duo unfolded, in a half-width text view, going up to a long note's first line grew the copy from 3 rows to 245 in one gesture, and the lift moved the cursor 26,642 characters. Coming back down moved nothing (down 20 / 40 / 60 pt after going up: 0 / 0 / 2 lines, Apple's 1 / 2 / 3). - State remembers the host's context as it last read it and as it read when the cursor stepped past the known text. The same context afterwards is no answer: catchUp returns false, and expire takes it as the text's start or end, as designed. The other causes are not fixed here, and are documented: - The rows are a guess. Fields don't show where they wrap: the context is the cursor's sentence in UITextView and in WKWebView. Rows are the keyboard's width less 40 pt, so a narrower field moves 2 to 3 lines per row (iPhone 17 Pro, half-width field, 20 / 40 / 60 pt up: Apple's 1 / 2 / 3, Hex's 2 / 5 / 7). On the Duo's cover screen an app gets 382 of 466 pt while the keyboard spans 452, so even a full-width field skips a line going down. - Safari's fields answer a keyboard's moves with a context that never matches, so there the trackpad stays within the sentence it started in. Verified - FullKeyboardEngineTests: 156 tests, 0 failures, including the new testTheTrackpadTakesAnUnchangedContextAsTheTextsStart. It fails without the fix (the copy becomes "Abc. Abc. "). - Studio, Duo unfolded, half-width text view, instrumented build with the fix: the copy stayed at 7 rows or fewer, and lifts moved at most 547 characters. Down after up now moves 2 / 4 / 6 lines, the same over-move as up (rows 1.9 times the field's lines). - Every other measured field moved the same as before, Safari included. - code-shape.py --check passes. |
||
| .. | ||
| benchmark/typing-replay | ||
| ci_scripts | ||
| docs | ||
| HEXActivity | ||
| HEXKeyboard | ||
| HEXMobile | ||
| HEXMobileTests | ||
| HEXShared | ||
| HEXWidgets | ||
| scripts | ||
| appstoreconnect.json | ||
| ExportOptions.plist | ||
| Package.resolved | ||
| project.yml | ||
| README.md | ||
Hex for iPhone
Status: Internal TestFlight app (HEXMobile), custom keyboard extension
(HEXKeyboard), and Live Activity + Control Center widget extension
(HEXWidgets). Dictation runs on the iPhone: Apple Speech on iOS 26+
(SpeechTranscriber, or DictationTranscriber for the languages it lacks),
FluidAudio Parakeet V2 (iOS 18+, English), and SFSpeechRecognizer before
iOS 26. The keyboard dictates by itself on iOS 26+ (in-keyboard dictation), or
over the shared App Group (group.anomaly.hex.mobile) in a warm session.
Audio never leaves the iPhone, and Hex removes each capture's file after
inference, cancellation, or failure.
This README is the map. Each area's detail lives in docs/, and the doc for
the area you touch is the spec for it.
Area docs
| Doc | What it covers |
|---|---|
docs/onboarding-and-setup.md |
First run, the setup sheet, Full Access, opening Hex from the keyboard, cold start and the handoff |
docs/keyboard.md |
The full keyboard and dictation bar: the Hex key, auto-start, push to talk, autocorrect and the typing models, Learn how I type, Adaptive touch, swipe typing, languages and layouts, size and touch targets, iPhone Duo and iPad, emoji, the Dot Scope |
docs/dictation.md |
Engines and speech models, warm sessions, styles and cleanup, dictation language, translation, live dictation (Live words), capture and audio, Action Button and Live Activity |
docs/settings-and-home.md |
Home's screen, the four Settings pages, the experiments list, and every --snap-state scene |
docs/build-and-test.md |
Prerequisites, generating the project, the cleanup tagger's model, the emoji index, replaying real typing |
docs/verification.md |
What the simulator proves, what needs a physical iPhone, and the measured numbers behind each check |
docs/releasing.md |
TestFlight releases: marketing version, App Store versions, tags and the Xcode Cloud workflow |
docs/acknowledgements.md |
Third-party data, models and their licences, shown in Settings › Acknowledgements |
docs/typing-logs.md |
Record typing logs: files, NDJSON schema and events |
Layout
| Path | What's there |
|---|---|
HEXMobile/ |
The containing app: Home, onboarding, Settings, the dictation controller |
HEXKeyboard/ |
The keyboard extension, its dictation bar and in-keyboard dictation |
HEXShared/ |
Shared by both: the full keyboard engine, layouts, typing models, cleanup, Dot Scope |
HEXActivity/, HEXWidgets/ |
ActivityKit attributes and intents, the Live Activity and Control Center widgets |
HEXMobileTests/ |
Unit tests, run with xcodebuild test |
benchmark/, scripts/ |
Typing replays; build-time helpers for the cleanup model, emoji index and typing models |
ci_scripts/ |
Xcode Cloud's post-clone step |
Build and test
Prerequisites: Xcode 26+ and XcodeGen 2.46.0+.
cd ios
scripts/fetch-cleanup-model.sh # the cleanup tagger's Core ML model, kept out of git
xcodegen generate
xcodebuild test -project HEXMobile.xcodeproj -scheme HEXMobile -destination "id=<SIM_UDID>"
No CI job compiles or tests the iOS targets, so these checks run only in a local
xcodebuild test. The emoji index files are generated and committed: after
changing scripts/emoji-aliases-en.txt or the sources, run
scripts/build-emoji-data.py.
What each run covers, and what needs a physical iPhone, is in
docs/build-and-test.md and
docs/verification.md.
Docs
Change an area doc in the same commit as the behaviour it describes. Facts that only apply to one area belong in that area's doc; this README stays a map.