hex/ios/HEXMobile
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
..
Assets.xcassets feat: add iOS dictation keyboard 2026-07-19 15:21:45 -04:00
AcknowledgementsView.swift iOS: spatial autocorrect experiment with Google Books models, plus accent and two-letter fixes (#2059) 2026-11-20 16:18:07 +00:00
AppleSpeechTranscriber.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
AudioBackend.swift iOS: rebuild the audio engine before the warm-mic tap so a route change can't crash it (#2064) 2026-11-20 16:25:47 +00:00
ContentView.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
CustomVocabularyEditor.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
DictationController.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067) 2026-11-20 16:41:37 +00:00
HexIntents.swift feat(ios): polish iPhone keyboard dictation, warm sessions, and Live Activity (#574) 2026-10-30 23:35:45 -07:00
HexLinks.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
HEXMobile.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
HEXMobileApp.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardPreviewHost.swift iOS: full keyboard by default, typing without Full Access, and a logging mark (#2067) 2026-11-20 16:41:37 +00:00
KeyboardSetup.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
LanguageSettingsRows.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
LiveActivityCoordinator.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
Onboarding.swift iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
OnboardingProgress.swift iOS: add a three-page first-run onboarding (#2031) 2026-11-20 12:36:45 +00:00
ParakeetTranscriber.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
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
SettingsPages.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
TranscriptCleanup.swift iOS: dictate in every language Apple Speech has on device 2026-11-20 07:52:32 -05:00
TranslateDictationRow.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
TypingInsightsView.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00
TypingLogsView.swift iOS: settings as a short home screen with Dictation, Keyboard, Privacy and Experiments pages (#2054) 2026-11-20 16:04:10 +00:00