Skip to content

iOS: the top bar's words sit in the middle of their pill again - #2204

Merged
R44VC0RP merged 1 commit into
devfrom
ios-strip-centred
Nov 21, 2026
Merged

R44VC0RP merged 1 commit into
devfrom
ios-strip-centred

Conversation

@R44VC0RP

Copy link
Copy Markdown
Collaborator

After #2201 the words sat on Apple's line but high inside the pill, because iOS's band above a third-party keyboard (present in non-Apple apps too, and moving up with a taller keyboard) cuts off the top of Apple's pill. Words, dividers and the Hex mark now centre in the 27 pt strip, each word in the middle of its pill. Verified in the iOS 27.2 simulator.

#2201 put the strip's words on Apple's line, 27 pt above row 1, but Apple's pill reaches
11 pt up into the band iOS draws over a third-party keyboard and Hex's can't, so the words
sat high in a 27 pt pill with a big empty band above it (Ryan, from his iPhone). The band
stays in non-Apple apps too, and a taller keyboard only raises it, so the words, dividers
and Hex mark now centre in the strip: each word in the middle of its pill as Apple's, 5.5 pt
below Apple's line. Keeps #2201's full-height pill and #2202's shared line for the mark,
which is back to 19 pt.

Verified in the iOS 27.2 simulator (iPhone 17 Pro, a third-party host app): 'Help' centred
in its pill, the Hex mark on the words' line (bubble-compare.png at hex-kb.i.vogel.dev).
@R44VC0RP
R44VC0RP merged commit e02a488 into dev Nov 21, 2026
1 check passed
R44VC0RP added a commit that referenced this pull request Nov 21, 2026
Centred in the strip (#2204), the words sat 5.5 pt below Apple's line with more room above
than below them, and the slot-wide pill, cut short by the band iOS draws over a third-party
keyboard, read as squashed (Ryan, from his iPhone). Apple's words sit midway between the
panel's edge and row 1's keycaps, so Hex's now do too (26 pt above row 1, 9 pt below the
band), and everything in the bar centres on that line, evenly above and below it:
- an autocorrection, a pressed word and a revert get a small chip around the word, 18 pt
  tall (Ryan's pick of four marks, rendered side by side), replacing the slot-wide pill;
- the dividers are as tall as the chip and stay beside it (not beside a revert);
- the Hex mark and its pressed chip sit on the same line.
Elsewhere (landscape, the Duo) the line is the strip's middle and the chip the pill height.

Verified in the iOS 27.2 simulator (iPhone 17 Pro, a third-party host app): words 20-32 pt
below the panel's edge (Apple's 19-31.7), the chip and mark centred on them
(chip-balanced.png at hex-kb.i.vogel.dev).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant