hex/ios/HEXShared
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel b6024b2001
iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067)
* iOS keyboard: the full keyboard by default, typing without Full Access

App Review 4.4.1 needs a keyboard extension to type, and to keep working
without Full Access and without network. Hex's default was the dictation
bar (space, delete, return, Dictate; no letter keys), and without Full
Access it showed only setup steps.

What changed
- FullKeyboardSettings.isEnabled (App Group key experiments.fullKeyboard,
  what Settings › Keyboard's Full / Dictation bar row binds) now reads
  unset as true: new installs and testers who never touched the old
  experiment get the full keyboard; an explicit false (turned off, or
  Dictation bar picked) keeps the dictation bar. --keyboard
  full|dictation-bar picks it in simulator scenes.
- Without Full Access the keyboard always mounts the full keyboard,
  whatever is chosen (the bar types only spaces and line breaks).
- Removed: the full keyboard's permanent "Allow Full Access to dictate
  with Hex" strip notice; the strip suggests and corrects as usual.
- Without Full Access the Hex key (tap, hold, VoiceOver, or sliding for
  its menu) no longer tries to dictate or open Hex: the strip shows
  "Allow Full Access to dictate" and "Settings › Apps › Hex › Keyboards"
  for 8 s (until a key is typed), with an Open Hex chip, the only thing
  that opens Hex (hex-dictation://keyboard/setup) without Full Access.
- In-keyboard dictation (onLocalDictateTap) is offered only with Full
  Access; before, it was set without it too, so the Hex key would have
  started a capture that can't work there.
- Scene full-keyboard-no-access-hint; README: the default, behaviour
  without Full Access, memory numbers and proof limits.

Verified (anomastudio, iPhone 13 simulator, iOS 27.2, Release, keyboard
in a real hosted field, a temporary uncommitted probe):
- Fresh install, Full Access off: full keyboard, no in-keyboard
  dictation; taps through the engine typed "thw " -> "the ", "tk " ->
  "to "; with Spatial autocorrect on (decoder active) also "ofthw " ->
  "of the ". The hint renders light and dark.
- Full Access on: full keyboard by default; --keyboard dictation-bar
  mounts the bar.
- Memory, 3 runs each, MB, before (78e4458d) -> after:
  full keyboard idle 18.4-18.5 -> 18.5-18.6 (18.0-18.3 without Full
  Access), first dictation max within 3 s 30.8-31.3 -> 31.2-31.8, peak
  32.1-32.5 -> 32.3-33.0; bar idle 20.7 -> 20.8, first dictation
  27.5-27.8 -> 27.3-27.9. Unchanged within noise, so #2045's 32/24 MB
  guard still covers it.
- xcodebuild test: 267 tests, 0 failures, 1 skipped (as before).
Not verified on a physical iPhone.

* iOS keyboard: show a Logging mark while typing logs record

App Review 2.5.14: a keyboard that records what is typed must say so the
whole time. Record typing logs had no indicator in the keyboard.

What changed
- KeyboardViewModel.isLoggingTyping, set by the keyboard from
  TypingLogger.isRecording (session start and end, and every bridge
  poll), so a skipped field (password, one-time code, card) shows no
  mark.
- Full keyboard: a flat "● Logging" mark (10 pt, the strip's muted ink)
  in the strip's top-leading corner, in from the keyboard's rounded
  corner; while dictating, at the start of the recording bar's well, with
  the scope moved past it, so it never disappears.
- Dictation bar: the same mark beside the Hex mark in its top row, there
  while idle and while recording.
- The dot is muted, not orange: an orange dot would read as iOS's
  microphone indicator. VoiceOver reads "Typing logs are recording".
- --typing-log-mark shows it in the full-keyboard and keyboard-* scenes;
  README.

Verified (anomastudio, iPhone 13 simulator, iOS 27.2, Release, keyboard
in a real hosted field with --experiment-typing-logs): the mark shows in
the full keyboard's strip, in its recording bar during an in-keyboard
dictation, and in the dictation bar idle and recording; the scenes
render it light and dark. Idle footprint with logging on 18.5-18.7 MB
(full) and 20.8-20.9 MB (bar), as without. Built for testing.

* iOS keyboard: cap keyboard-capture-probe.log at 512 KB

The in-keyboard dictation probe log in the App Group grew without limit:
every dictation and memory change appends to it, and nothing removed it.

What changed
- KeyboardProbeLog.write: once the file passes 512 KB, it keeps only its
  newest 256 KB, from the first whole line in them (atomic rewrite).
  Nothing user-facing reads the log; testers' copies keep their recent
  footprint lines.
- README: the cap.

Verified (anomastudio, iPhone 13 simulator, iOS 27.2, Release): a
614,400-byte log in the simulator's App Group container became 262,590
bytes after the keyboard's next in-keyboard dictation wrote to it,
starting on a whole filler line and ending with that dictation's lines.
2026-11-20 16:41:37 +00:00
..
FullKeyboard iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067) 2026-11-20 16:41:37 +00:00
TypingLog iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AppleIntelligenceCleanupSettings.swift ios: optional Apple Intelligence transcript cleanup (experiment) (#1538) 2026-11-08 08:07:11 -05:00
AppleSpeechModule.swift iOS: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +00:00
CleanupReconstruction.swift iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
CleanupTagger.swift iOS: Spanish clean-up, paste translated or as spoken, screen stays on while recording (#2046) 2026-11-20 14:39:28 +00:00
CleanupTokenizer.swift iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
CustomVocabularySettings.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationCorrections.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditInference.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditTracker.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationLanguage.swift iOS: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +00:00
DictationLanguageSwitch.swift iOS: switch the dictation language from the keyboard 2026-11-20 07:52:38 -05:00
DictationTranslation.swift iOS: Spanish clean-up, paste translated or as spoken, screen stays on while recording (#2046) 2026-11-20 14:39:28 +00:00
DotScope.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
DotScopeShader.metal fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmptyCapture.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
HexTheme.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
HomeSwipeCue.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
KeyboardBridge.swift iOS: remove the return-to-app feature; swipe back after a handoff (#2042) 2026-11-20 13:58:31 +00:00
KeyboardSurface.swift iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067) 2026-11-20 16:41:37 +00:00
SpeechModelInstall.swift iOS: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +00:00
SpokenCleanupRules.swift iOS: Spanish clean-up, paste translated or as spoken, screen stays on while recording (#2046) 2026-11-20 14:39:28 +00:00
TranscriptFormatter.swift iOS: Spanish clean-up, paste translated or as spoken, screen stays on while recording (#2046) 2026-11-20 14:39:28 +00:00
UserFacingError.swift iOS: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +00:00
VocabularySpelling.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00