hex/ios/HEXShared/FullKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel aa17ead4d7 iOS: the keyboard's rows fit the height iOS really gives it (Spotlight, iOS 27.3)
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:42:07 -05:00
..
Emoji iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
AccentPicker.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
AdaptiveTouch.swift iOS: the full keyboard matches the system keyboard one to one (#2178) 2026-11-21 07:20:46 -05:00
AdaptiveTouchLabels.swift iOS: Adaptive touch, personal key centres learned on device (Experiment, off by default) (#2146) 2026-11-21 06:13:04 +00:00
AutocorrectEngine+Accents.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
AutocorrectEngine+Dictionaries.swift iOS: text replacements fire like the system's and stay put, and no stray capitals from suggestions (#2173) 2026-11-21 06:10:45 -05:00
AutocorrectEngine+Distance.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine+Vocabulary.swift iOS: words mid-sentence stay lowercase unless you capitalized them (#2218) 2026-11-21 14:35:10 -05:00
AutocorrectEngine.swift iOS: the next word gives the word before its language's accents (#2231) 2026-11-21 14:35:35 -05:00
CzechTyping.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DeleteWordSwipe.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
DictationUndo.swift iOS: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
FullKeyboardEngine+Keys.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
FullKeyboardEngine+Revert.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+SmartSpace.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
FullKeyboardEngine+SwipeTyping.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
FullKeyboardEngine+Trackpad.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardEngine.swift iOS: the keyboard's rows fit the height iOS really gives it (Spotlight, iOS 27.3) 2026-11-21 18:42:07 -05:00
FullKeyboardPalette.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
FullKeyboardSettings.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
FullKeyboardTouch.swift iOS: a quick space tap that drifts still types a space, and space keeps its place in a rollover (#2233) 2026-11-21 14:36:17 -05:00
FullKeyboardView+Emoji.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
FullKeyboardView+Vocabulary.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
FullKeyboardView.swift iOS: the keyboard's rows fit the height iOS really gives it (Spotlight, iOS 27.3) 2026-11-21 18:42:07 -05:00
GermanCapitals.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
GreekTyping.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
HexKeyGesture.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
HexKeyViews.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardBackdropView.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
KeyboardClipboard.swift iOS: Code from Messages shows only when Apple's keyboard is on (#2187) 2026-11-21 08:39:11 -05:00
KeyboardKeyPlaneView.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
KeyboardLanguage.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
KeyboardLaunchWork.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
KeyboardLayout.swift iOS: the keyboard's rows fit the height iOS really gives it (Spotlight, iOS 27.3) 2026-11-21 18:42:07 -05:00
KeyboardStripView.swift iOS: a 38 pt top bar with room above its words, on a glass-coloured material instead of a fixed-colour panel (#2256) 2026-11-21 17:06:06 -05:00
LanguageLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
never-suggest.tsv iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
OffensiveWords.swift iOS: never suggest slurs, and swear words only when asked (#2093) 2026-11-20 20:17:31 +00:00
ReturnKeyStyle.swift iOS: Return follows the app's return key type, and the dictation bar's does too (#2200) 2026-11-21 09:54:57 -05:00
ShiftStateMachine.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SmartPunctuation.swift iOS: avoid double spaces when editing a word mid-sentence (#2214) 2026-11-21 12:43:26 -05:00
SwipeDecoder.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
SwipeTyping.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TextChecking.swift iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
TrackpadCursor.swift iOS: the space-bar trackpad moves like Apple's (#2219) 2026-11-21 13:23:46 -05:00
TypingDecoder.swift ios keyboard: read a missed space with a slip, and run-together words (#2244) 2026-11-21 16:15:02 -05:00
TypingJournal.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
TypingJournalLearning.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00