hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel ee3e4d600f iOS keyboard: a dictation handed off to Hex goes in when you come back (and the bar offers Paste dictation)
TestFlight build 115, iPad mini (A17 Pro), iPadOS 18.7.8: "When I go to dictate, it opens
Hex. I click Done. Then I have to go back to Hex to copy it." Before iOS 26 Dictate opens
Hex to record (by design); the text is meant to go into the field when you return.

Cause: iOS often starts a new keyboard view controller as you come back from Hex, and
viewDidLoad's syncFromBridge inserted Hex's result before the keyboard was shown. The
proxy accepted the text (its documentContextBeforeInput even showed it) but the field never
got it, and lastInsertedResultID marked it delivered, so nothing offered it afterwards.
Results now go in only while the keyboard is shown (viewWillAppear onwards), as the held
in-keyboard dictation already did. Same on iPhone.

Second gap: a result that missed its 30 s was offered as Paste dictation only in the full
keyboard's strip. The dictation bar, the only keyboard on an iPad, offered nothing. The
bar's top row now shows a Paste dictation chip (zh-Hans: 粘贴听写) while one is on offer.

Verified on the Mac Studio, with a diagnostic build (not committed) that forces the
pre-iOS 26 path, a simulated microphone and a fixed transcript, in a UITextView host that
logs its text:
- iPad mini (A17 Pro) sim, iOS 26.2 (no iOS 18 runtime: Xcode 27.2 won't download one),
  full-screen apps, portrait, dictation bar. Return via the "< App" breadcrumb and by
  launching the app (Dock/Spotlight/switcher equivalent) at 2, 10, 40 and 90 s after Done.
  efd5cea0 (build 115): 8/8 nothing in the field, nothing offered.
  This change: 2 and 10 s inserted; 40 and 90 s Paste dictation shown, tapping it inserts.
- iPhone 17 Pro sim, iOS 26.2, same path: build 115 lost the text the same way; with the
  change it goes in at 2 s, and at 40 s the full keyboard's strip and the bar both offer it.
- xcodebuild test (iPhone 17 Pro, iOS 27.2): 681 tests, 0 failures.
Not verified: a real iPad, iPadOS 18, the home-bar swipe (sim HID can't do edge gestures),
landscape and the floating keyboard.
2026-11-21 19:37:01 -05:00
..
Assets.xcassets
zh-Hans.lproj
AcknowledgementsView.swift
AppleSpeechTranscriber.swift
AppShortcuts.xcstrings
AudioBackend.swift
ContentView.swift
CustomVocabularyEditor.swift
DictationController+Engine.swift
DictationController+LaunchFixtures.swift
DictationController.swift
EmojiSemanticIndex.swift
FullKeyboardSnapshotStage.swift
HexIntents.swift
HexLinks.swift
HEXMobile.entitlements
HEXMobileApp.swift
Info.plist
KeyboardPreviewHost.swift
KeyboardSetup.swift
KeyboardSpeechPreparation.swift
LanguageSettingsRows.swift
LiveActivityCoordinator.swift
Localizable.xcstrings
Onboarding.swift
OnboardingPieces.swift
OnboardingProgress.swift
OnDeviceSpeechTranscriber.swift
ParakeetTranscriber.swift
ParakeetUltraModel.swift
ParakeetUltraTranscriber.swift
PrivacyInfo.xcprivacy
SettingsComponents.swift
SettingsPages.swift
SpeechEngineChoice.swift
TranscriptCleanup.swift
TranslateDictationRow.swift
TranslationSessionHost.swift
TypingInsightsView.swift
TypingLogsView.swift