hex/ios/HEXMobileTests
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
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS keyboard: French AZERTY gets Apple's apostrophe key after N (#2354) 2026-11-22 05:09:39 -05:00
CleanupTaggerTests.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
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
DictationLanguageTests.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
DictationLearningTests.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
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiPanelLettersKeyTests.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
EmojiSuggesterTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
FullKeyboardEngineTests.swift iOS keyboard: Ukrainian follows the iOS version's own rows; ʼ on its 123 and #+= pages (#2357) 2026-11-22 05:45:47 -05:00
HangulComposerTests.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
HexKeyGestureTests.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
KeyboardBridgeTests.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
KeyboardDuoCoverTests.swift ios: smaller key labels on the duo's cover screen (#2346) 2026-11-22 04:35:44 -05:00
KeyboardLayoutTests.swift iOS keyboard: on iOS 26 the iPhone's rows are Apple's iOS 26 rows (#2358) 2026-11-22 06:42:02 -05:00
KeyboardSwitchGuessTests.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
LaggingField.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift iOS keyboard: no automatic hand-off or Code from Messages where Apple's keyboard is split (#2349) 2026-11-22 04:16:08 -05:00
SwipeDecoderTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TranscriptCleanupTests.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
TwoLanguageMergeTests.swift iOS: two-language dictation experiment (#2348) 2026-11-22 04:58:27 -05:00
TwoThumbSelectionTests.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TypingLogTests.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
TypingReplayTests.swift iOS keyboard: the typing replay reports all-words accuracy, contractions and taps read as swipes (#2287) 2026-11-21 20:32:00 -05:00