mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Kit's App Store screenshot (dark mode) showed the suggestions sitting low with a large empty band between the keyboard panel's top edge and the words. Measured black-box against Apple's English keyboard in the same Messages field (iOS 27.2 simulator, iPhone 17 Pro, SE 3rd gen, 17 Pro Max): iOS 26 draws a band of its own above every third-party keyboard (16.3 pt on the 17 Pro, 12.5 pt on the SE, 13.3 pt on the Pro Max) that no extension can draw into (checked with a throwaway build drawing at negative y: the hosted window is exactly the keyboard's height). Hex then added Apple's whole 44 pt bar and 8 pt gap below it, so its keycaps started 68 pt below the panel edge where Apple's start 48-52 pt, and its words sat 38 pt down where Apple's sit 20-24 pt. What changed: - The phone strip is the 27 pt of Apple's bar below iOS's band, then the same 8 pt gap: row 1 starts 35 pt down (Apple's keycaps are 35.0-35.5 pt below the extension's top on all three iPhones), so the panel edge to row 1 now measures 51.3 pt against Apple's 51.7 pt on the 17 Pro. The keyboard is 253 pt (172 pt landscape) instead of 270 (189); keys do not move on screen, only the panel's top edge comes down 17 pt. The Duo keeps its 44 pt bar (KeyboardMetrics.insetStripHeight). - Slots are thirds of the keyboard as Apple's are (dividers end at 134 and 268 pt on a 402 pt iPhone), with the Hex key's room taken from the slot beside it (KeyboardLayout.stripSlotFrames), instead of thirds of the strip left of the Hex key. Typing logs record the real slot frames. - Dividers are Apple's 1 x 24 pt (were 1 px x 22 pt), ending on the boundary, in Apple's measured ink. - Words are Apple's muted ink (dark 0.58 white, light 0.67 black) instead of full white/black; the literal word no longer has its own alpha. - A pending autocorrection is Apple's full-slot capsule with white words in regular weight (was a 10 pt-radius pill inset 4 pt, medium weight). The capsule is 26 pt tall, not Apple's 38 pt: Apple's top 11 pt falls in iOS's band. - The Hex key, recording bar (Dot Scope well, X and check) and Undo / Paste chips use the strip's pill height (26 pt, 4 pt-inset 36 pt on the Duo); the Hex mark keeps its 19 pt. The Full Access hint's two lines fit 27 pt (13 / 11.5 pt). - #2100's rule is unchanged: a fast tap on the strip's lower half (below its text line, now 13.5 pt down) types the row-1 key below; its tests pass as written. Kept on purpose: words are centred in the 27 pt Hex can draw, about 5.5 pt lower than Apple's relative to the panel edge, so the pill has room around them; Apple lets long words run past their slot at 17 pt, Hex still shrinks them to 15 pt and truncates, so nothing runs under the Hex key. Which suggestions appear (#2125) is untouched. Verified: xcodebuild test on the iPhone 17 Pro Max simulator, 383 tests, 0 failures, 1 skipped, with updated KeyboardLayoutTests (heights, strip metrics, row 1 at 35 pt) and a new case for Apple's thirds with the Hex key on either side. Side-by-side screenshots of Apple's keyboard and Hex in Messages (empty, typing, literal in quotes, pending correction, long word, next word) on the 17 Pro and SE in light and dark, and the recording bar, Full Access hint and Hex key on the left before and after. |
||
| .. | ||
| DictationStages.swift | ||
| TypingLogEvent.swift | ||
| TypingLogger.swift | ||
| TypingLogSession.swift | ||
| TypingLogStore.swift | ||