hex/ios/HEXShared
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 393dad067c
iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows (#2358)
* iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows

What: Apple's iPhone keyboard draws other rows before iOS 27 (black box,
iOS 26.2 and 26.5 simulators beside Hex in the same field, iOS 27.2 as the
control). Upright on an 844 to 874 pt iPhone its keycaps, pitch and prediction
bar are iOS 27's but its panel is 7 pt taller under the keys, so every row sat
7 pt above Hex's; on a 900 pt or taller one it is 2 pt shorter, 2 pt below.
Turned, its keycaps are iOS 26's 27.33 pt on a 35.33 pt pitch, ending 4 pt
above the bottom, against Hex's 32 on 40 (row 1 17 pt off). Hex was measured
on iOS 27.2 only (#2178), so everyone on iOS 26 had keys off their own
keyboard's rows. On iOS 26 Hex now uses Apple's iOS 26 rows:
- upright 844 to 874 pt (12, 16, 17 Pro): rows 7 pt higher, row 4 whole
  (no 4 pt trim), 3 pt under it: 247 -> 254 pt
- upright 900 pt and taller (Air, Plus, Pro Max): 5 pt under row 4 instead of
  7: rows 2 pt lower, 266 -> 264 pt
- turned (Face ID iPhones): 27.33 pt keycaps, 8 pt gaps, 4 pt under row 4:
  204 -> 187.33 pt, whose top meets Apple's panel edge
The strip stays 38 pt upright and 42 pt turned; the columns, the SE (upright
and turned), the Duo and the iPad keep today's metrics on every version.
On iOS 27 nothing changes.

Changed: KeyboardMetrics.portraitIOS26, landscapeIOS26, appleRowsAreIOS26
(KeyboardLanguage.systemMajorVersion < 27, #2357's check); phonePortrait
(.regular, .large) and letterRows' turned phone base pick by it. Everything that
reads the metrics follows: Hex's requested height, the number row, the emoji
panel (also the dictation bar's), #2280's fitting to a short view, hit areas.

Verified (Studio simulators): Apple's keycaps over Hex's, iPhone 16, 17 Pro,
Air and 17 Pro Max on iOS 26.5 and the 17 Pro on iOS 26.2, upright and turned,
letters, 123 and #+=: every edge within 0.34 pt (26.2 turned row 1's top
0.67 pt). iOS 27.2 17 Pro: Hex's keyboard is pixel-identical to origin/dev
6459618d upright and turned (only the field's caret/status bar differ).
Real HID touches on iOS 26.5 (17 Pro, 17 Pro Max, upright and turned): "the
quick brown fox jumps over the lazy dog" typed exactly; taps 2 pt under row 1's
top edge type q to p; taps 2 pt above and 1 pt below row 4's bottom edge hit
space and return. Rows identical in Safari's address bar and Spotlight; number
row, emoji panel and the dictation bar's emoji panel fit. New case
KeyboardLayoutTests.testIOS26RowsAreApplesIOS26Rows. ios/README updated.

* iOS keyboard: iOS 26's rows on iOS 26 only; iOS 18 keeps today's

appleRowsAreIOS26 was systemMajorVersion < 27, which also moved the rows on
iOS 18, where Apple's keyboard was never measured (the Studio has no iOS 18
simulator). It is now == 26, so iOS 18 (and any other version) keeps the iOS 27
rows Hex drew there before; the comment and ios/README say iOS 18 is unmeasured.
Ukrainian's twelve-key check stays >= 27 (its eleven-key rows are the old layout).

Verified: testIOS26RowsAreApplesIOS26Rows now pins 18, 25 and 27 to the same keys
and heights and 26 to different ones; xcodebuild test (iPhone 17 Pro, iOS 27.2)
and python3 scripts/code-shape.py pass.
2026-11-22 06:42:02 -05:00
..
FullKeyboard iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows (#2358) 2026-11-22 06:42:02 -05:00
TypingLog iOS keyboard: the full keyboard on iPad, sized like Apple's iPad keyboards (#2313) 2026-11-21 22:31:56 -05:00
AppleIntelligenceCleanupSettings.swift ios: optional Apple Intelligence transcript cleanup (experiment) (#1538) 2026-11-08 08:07:11 -05:00
AppleSpeechModule.swift iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
AppleSpeechTwoLanguage.swift iOS: two-language dictation experiment (#2348) 2026-11-22 04:58:27 -05:00
AudioSessionControlling.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
CleanupGuard.swift iOS: Clean up what I say keeps names, and is on by default (#2132) 2026-11-21 03:12:53 +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 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
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 keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
DictationLanguageSwitch.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
DictationPipeline.swift iOS: spoken punctuation in dictation (#2198) 2026-11-21 09:31:47 -05:00
DictationTranslation.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
DotScope.swift iOS: a tap after a swiped word starts the next word, and the Metal HUD stays off the home page (#2159) 2026-11-21 07:54:19 +00: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
FrenchSpacing.swift iOS: French spacing in dictation, and a second language no longer hurts English autocorrect (#2186) 2026-11-21 08:37:33 -05: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
HinglishLexicon.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +00:00
HinglishRomanizer.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +00:00
HomeSwipeCue.swift iOS: a tap after a swiped word starts the next word, and the Metal HUD stays off the home page (#2159) 2026-11-21 07:54:19 +00:00
KeyboardBridge.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
KeyboardsOnScreen.swift iOS: the keyboard is iOS's own glass again; the backdrop shows only over an earlier Hex keyboard iOS left on screen (#2302) 2026-11-21 21:29:58 -05:00
KeyboardSurface+ViewModel.swift iOS keyboard: a dictation handed off to Hex goes in when you come back (and the bar offers Paste dictation) (#2293) 2026-11-21 19:42:09 -05:00
KeyboardSurface.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
KeyboardSwitchGuess.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
MicrophoneChoice.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
MultilingualParakeetSettings.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
SpeechModelInstall.swift iOS: model preparation loads once, keeps moving, and survives the background (#2171) 2026-11-21 10:39:38 +00:00
SpokenCleanupRules.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
SpokenLists.swift iOS: format dictated lists, and write out gonna and wanna (#2131) 2026-11-21 03:01:16 +00:00
SpokenPunctuation.swift iOS: spoken punctuation in dictation (#2198) 2026-11-21 09:31:47 -05:00
TranscriptFormatter.swift iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
TwoLanguageDictationSettings.swift iOS: two-language dictation experiment (#2348) 2026-11-22 04:58:27 -05:00
TwoLanguageMerge.swift iOS: two-language dictation experiment (#2348) 2026-11-22 04:58:27 -05:00
UserFacingError.swift iOS: fewer paste prompts, and a translate switch in the keyboard (#2134) 2026-11-21 03:24:58 +00:00
VocabularySpelling.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00