hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel c0f15f7689
iOS keyboard: nothing heavy before the keys' first frame (#2185)
TestFlight build 56 (AD4gTl68aP78, iPhone 15 Pro Max, iOS 27.2): switching to Hex
showed only empty panels, then iOS went back to the previous keyboard. Until a
keyboard's first frame iOS shows an empty panel, and it drops a keyboard that is
slow to draw or ends while starting. The keyboard did device-only blocking work on
that path:

- viewDidLoad called AVAudioSession setAllowHapticsAndSystemSoundsDuringRecording
  synchronously on the main thread (an audio-server round trip). It now runs once
  per process on KeyboardLocalDictation's audio-session queue, before any
  dictation's session work on that same serial queue.
- viewDidAppear queued the text checker warm-up, Apple Speech's language listing
  and the capture page's WKWebView with DispatchQueue.main.async, which the run
  loop can service before the first Core Animation commit. They now run from
  KeyboardLaunchWork: the text checker and lexicon 0.3 s after appearing, then the
  optional work (Speech and Translation language lists, capture page) at 0.6 s,
  only while iOS reports 32 MB of headroom (or none, as in the simulator) and never
  after a memory warning. Both are cancelled when the keyboard hides. Translation's
  language list no longer starts from viewDidLoad's first bridge sync.

Not reproduced in the iOS 27.2 simulator on 2ef08aa4 or d23acdf8 (French alone,
English, English+Spanish, French+English; Full Access on and off; Safari and Hex
Settings > Keyboard), so the device cause is not confirmed. Release peak footprint
there was 30-31 MB for every language; French loads no typing model.

Verified: xcodebuild test on an iPhone 15 Pro Max iOS 27.2 simulator, 524 tests,
0 failures, 1 skipped (new KeyboardBridgeTests case for the launch budget); the
keyboard comes up in Safari and in Hex's own test field with French, and the
capture page is still prepared after the first frame (probe log).
2026-11-21 08:28:59 -05:00
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -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
KeyboardLocalDictation.swift iOS keyboard: nothing heavy before the keys' first frame (#2185) 2026-11-21 08:28:59 -05:00
KeyboardViewController.swift iOS keyboard: nothing heavy before the keys' first frame (#2185) 2026-11-21 08:28:59 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00