hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel da0adde177
iOS: the keyboard's rows fit the height iOS really gives it (Spotlight, iOS 27.3) (#2280)
TestFlight build 98 (25a96a8f), iPhone 17 Pro Max, iOS 27.3, "Spotlight search": the
screenshot shows rows 1-3 on their usual lines and only the top 19 pt of row 4, cut off by
iOS's globe and microphone band. Measured from it, the keyboard is 375 pt wide (3x) and
Hex's view ends about 20 pt short of the 247 pt it asked for; nothing of Hex shows under the
band, so the view itself is shorter, not covered.

A keyboard extension's view takes its window's height (UIView-Encapsulated-Layout-Height,
priority 1000, beats Hex's 999 request), but KeyboardLayout always laid the rows out for the
height Hex asked for, from the top, so a shorter view lost row 4 below its bottom edge.
Now FullKeyboardView passes the height it really has (bounds less the emoji search lift) to
the engine, and KeyboardMetrics.fitted(toHeight:) shrinks the keycaps and the gaps between
rows alike to fit it. The strip (PR #2256's 38 pt bar) keeps its size. At the requested
height, or with no height yet, nothing changes.

Verified on Studio simulators, iOS 27.2 (the newest runtime there; no 27.3):
- Build 98 and dev in Spotlight (Home swipe and Search pill), App Library search and
  Settings search on 17 Pro Max, 17 Pro and 13 mini: all rows fit (view 266/247 pt, the same as
  asked for), so 27.2 doesn't reproduce it.
- Requesting 20 pt less than the layout (a diagnostic build) reproduces the tester's picture
  on dev; with this change the four rows fit the 227 pt view and real taps on row 4 work
  (h, i, space, 123, 1 typed "hi 1" in Spotlight).
- Safari address bar, iPhone 17 Pro: Hex's rows still sit on Apple's (598-641, 653-694,
  706-749, row 4 from 760), and Hex's rows in Spotlight are unchanged from build 98.
- xcodebuild test: 675 tests, 0 failures (new KeyboardLayoutTests case).
2026-11-21 18:47:47 -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: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -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: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -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: experiment to put the emoji panel's ABC under the emoji key (#2221) 2026-11-21 13:41: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: Paste and Code from Messages give way to suggestions in chat boxes (#2279) 2026-11-21 18:28:10 -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: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
KeyboardLayoutTests.swift iOS: the keyboard's rows fit the height iOS really gives it (Spotlight, iOS 27.3) (#2280) 2026-11-21 18:47:47 -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
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -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 fix(labs): Apple Intelligence cleanup never pastes an answer or a preamble (#2212) 2026-11-21 13:43:24 -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: replay recorded real typing through swipe and tap decoding (#2263) 2026-11-21 18:31:02 -05:00