hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 811881e98e
iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211)
* iOS: onboarding's practice says how to bring up Hex's keyboard

David (iPhone 17 Pro Max, iOS 26.6.2, TestFlight) switched to Hex with the
globe in onboarding's practice and saw "a big blank bar" with no Hex key,
so he used iOS's own dictation mic instead.

Not reproduced in the iOS 27.2 (iPhone 17 Pro) and 26.4 (iPhone 17 Pro
Max) simulators, from first launch with Full Access granted before and
while the keyboard ran: the keys, suggestions and Hex key are up in the
first screenshot after the switch (0.5 s) every time. In the keyboard
only the recording bar hides the Hex key with the keys up, and nothing in
onboarding starts it, so the blank bar was most likely iOS's empty panel
before the keyboard's first frame on that iPhone (as in #2185's report).
The app couldn't tell, and the page kept saying "tap the Hex key".

What changed
- The keyboard notes in the App Group when its view has appeared
  (viewDidAppear, after its first frame) and when it goes away
  (viewWillDisappear): KeyboardBridge.recordKeyboardShown/Hidden.
- KeyboardPresence.isShown: shown since it last appeared and not hidden
  since, with a sign of life (that appearance or the Full Access report it
  repeats every 5 s while shown) under 7 s old.
- The practice page: after a keyboard switch by hand, when Hex's keyboard
  isn't on screen within 2 s (another keyboard, iOS's dictation, or Hex's
  never drew), it says "Don't see the Hex key? Tap the globe until Hex's
  keyboard comes up", gone as soon as Hex's keyboard is up. Only with
  Full Access, which the keyboard needs to write the App Group; without
  it the existing Full Access note shows. The three practice notes share
  one view (practiceNote); zh-Hans string added; README.

Verified (anomastudio, ad-hoc signed Debug build, iPhone 17 Pro iOS 27.2,
onboarding from first launch): switching from Hex to Apple's keyboard
shows the note after 2 s, switching back hides it; tapping iOS's mic
under Hex's keyboard takes Hex's keyboard off screen (hiddenAt written).
Not verified on a physical iPhone.

* iOS: onboarding's practice finishes only on Hex's own input

David finished onboarding's practice with iOS's dictation (the system
mic at the bottom right), not Hex: the practice counted any three words
in its field once a keyboard had ever reported Full Access, so iOS's
dictation, or Apple's keyboard, passed it. Reproduced on an iOS 27.2
simulator: three words typed on Apple's keyboard showed "That's Hex".

What changed
- Words count as typed only when they arrive while Hex's keyboard is on
  screen (KeyboardPresence, from the previous change): iOS's dictation and
  other keyboards take Hex's keyboard off screen, so their text never
  counts. OnboardingPractice.isDone takes typedWithHex (the words Hex's
  keyboard was up for, never more than the field holds) in place of the
  field's word count; wordsAdded works out a change's new words.
- Text that arrives while Hex's keyboard is off screen shows "That came
  from iOS dictation or another keyboard, not Hex. Tap the Hex key on
  Hex's keyboard." and the practice doesn't finish; Hex's own input clears
  it, as does emptying the field. Only with Full Access (without it the
  Full Access note shows). zh-Hans string added; README.
- Unchanged: a dictation Hex's keyboard inserted (lastInsertedResultID)
  still finishes it at once, and snapshot fixtures count their text.

Verified (anomastudio, ad-hoc signed Debug build, iPhone 17 Pro iOS 27.2,
practice reached from first launch):
- Before: "See you at" typed on Apple's keyboard showed "That's Hex".
- After: the same text keeps "Your turn" and shows the note; switching to
  Hex and typing "we" clears the note and still isn't done; "go now" with
  Hex's keys shows "That's Hex".
- Tapping iOS's mic under Hex's keyboard takes Hex's keyboard off screen
  (the simulator has no microphone, so iOS's dictation inserted nothing).
- xcodebuild test (both changes): 620 passed, 1 skipped, 0 failures.
Not verified on a physical iPhone.
2026-11-21 12:20:32 -05:00
..
Assets.xcassets iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
zh-Hans.lproj iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AcknowledgementsView.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
AppleSpeechTranscriber.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
AppShortcuts.xcstrings iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AudioBackend.swift iOS: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05:00
ContentView.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
CustomVocabularyEditor.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DictationController+Engine.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
DictationController+LaunchFixtures.swift iOS: split DictationController so dev passes the size check (#2066) 2026-11-20 11:42:45 -05:00
DictationController.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05: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: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05: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: remove and add dictation languages from the keyboard, and a space-bar cursor on the Dictation bar (#2180) 2026-11-21 07:40:24 -05:00
KeyboardSetup.swift iOS: Full Access confirms on its own, and shows Off after a revoke (#2154) 2026-11-21 07:25:50 +00:00
KeyboardSpeechPreparation.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
LanguageSettingsRows.swift iOS: Latin American Spanish dictates with US or Mexican Spanish, and labels name the variant (#2191) 2026-11-21 09:15:50 -05: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
Localizable.xcstrings iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
Onboarding.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnboardingPieces.swift iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
OnboardingProgress.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnDeviceSpeechTranscriber.swift iOS: dictate Latin American Spanish with Latin America's model, and keep a picked variant when the keyboard switches (#2193) 2026-11-21 09:53:34 -05:00
ParakeetTranscriber.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
ParakeetUltraModel.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
ParakeetUltraTranscriber.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
SettingsPages.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
SpeechEngineChoice.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TranscriptCleanup.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
TranslateDictationRow.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TranslationSessionHost.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TypingInsightsView.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
TypingLogsView.swift iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00