On the iPhone Duo (iPhone19,4) the full keyboard used iPhone geometry in every
posture. Unfolded, both size classes are regular, so the wide 951 x 669 pt
screen got portrait metrics: 73 pt wide, 45 pt tall keys on 56 pt rows where
Apple's are 38.7 pt on 51.7 pt rows, and 59.7 pt rows when turned. iOS also
sets third-party keyboards in an inset platter there (452 of 466 pt folded,
655 of 669 and 801 of 951 pt unfolded), so Hex's 6.5 pt margins put its keys
well inside Apple's.
The keyboard now reads a KeyboardPosture (phone, cover, unfoldedWide,
unfoldedTall) from its window's screen and the model identifier, and on the
Duo uses Apple's row pitch for that screen and starts its keycaps as far from
the screen's side as Apple's (measured in the iOS 27.2 simulator: rows within
2 pt of Apple's, keycaps within 0.5 pt).
The strip was 44 pt with row 1 right under it, 39 pt in landscape, and grew
16 pt while dictating, so the band above the keys measured 45 pt on iPhones
in portrait, 40 pt in landscape, 61 pt while recording, and 46-58 pt on the
Duo. Apple's band is 51-53 pt everywhere. The strip is now Apple's 44 pt bar
in both orientations and every state, with 8 pt under it on iPhones (row 1 at
52 pt; keyboard 270 pt portrait, 189 pt landscape) and none on the Duo, where
iOS draws its own band above third-party keyboards. Dictating no longer grows
the keyboard (removed recordingLiftHeight); the recording bar fills the strip.
Row 1 takes touches across the gap, as Apple's keys reach about 8 pt above
their keycaps.
Verified: xcodebuild test (304 tests, 0 failures, 1 skipped) with new
KeyboardLayoutTests cases for the Duo's postures and the pinned strip; before
and after screenshots of the extension in Hex's field, Messages, Safari's
address bar and Settings search on the iPhone 17 Pro, 17 Pro Max and SE
(portrait and landscape) and the Duo folded, unfolded upright and turned,
next to Apple's keyboard. Key sizes on the iPhones are unchanged.