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).