hex/ios/HEXShared
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel fcea123fe3 iOS keyboard: follow the keyboard's live traits for light and dark, not the proxy's appearance
TestFlight build 29: in dark mode, switching to another app and back left the
full keyboard's keys in the light palette (white keys, black labels) over the
system's dark platter.

Cause: the palette took textDocumentProxy.keyboardAppearance first, and
updateKeyboardTraits() overrode the controller's interface style from it. The
host resolves a default field's appearance to .light or .dark when it sends
its text traits and doesn't send them again when only its style changes, so
the value goes stale. Reproduced on an iOS 27.2 simulator (iPhone 16 Pro Max,
Contacts' New Contact field): with the keyboard up, go home, the system
switches to light, return (the proxy now says .light), the system switches
back to dark. The keyboard window's traits went dark, and the platter with
them, but the palette stayed on the stale .light ("applyAppearance view=dark
win=dark appearance=light -> light"). In light mode the reverse also
happened: a stale .dark set overrideUserInterfaceStyle = .dark, which kept
both the full keyboard and the dictation bar dark on a light platter. On a
real iPhone the stale value most likely comes from the app switcher's light
and dark snapshots of the host. That device trigger is inferred; the
simulator reproduces the stale-value mechanism.

Change: FullKeyboardPalette.isDark(traits:) follows the trait collection
alone, and the controller no longer sets overrideUserInterfaceStyle.
Removed: the proxy's .light/.dark no longer decides the palette, and the
#904 override is gone. #904's behaviour stays: iOS itself gives the keyboard
window dark traits for a field that asks for a dark keyboard in a light app
(checked with --hosted-field dark-field: full keyboard and dictation bar
both dark).

Verified on the iOS 27.2 simulator with before and after screenshots: dark
mode round trip (dark keys after the fix), light mode round trip (light
keys), the dictation bar both ways, the dark field in a light app, and a
plain home and return. xcodebuild test: 247 tests, 0 failures, 1 skipped.
2026-11-20 10:44:53 -05:00
..
FullKeyboard iOS keyboard: follow the keyboard's live traits for light and dark, not the proxy's appearance 2026-11-20 10:44:53 -05:00
TypingLog iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05: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: speech model fallbacks for iPhone 11 and unavailable languages; no raw errors in the keyboard (#2048) 2026-11-20 15:04:43 +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