hex/ios/HEXShared/FullKeyboard/Engine
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 47a2e08f03 ios: typing config: compile the active config once per generation
The keyboard re-read active.json through a full TypingConfigReview (JSON parse, decode, every
check) whenever it built a letters layout it hadn't just built, to find that layout's aim and
zones, and compiled the zone map again each time. TypingConfigActive now compiles the file once
per typingConfig.generation into what the keys use and keeps it for the life of the process: the
words, and each key block's context, aim and zones as plain values, read and clamped by the same
two helpers the review uses (TypingConfigReview.aim / .zone). A layout only picks the first block
whose context matches (zones dropped when the hit model differs, as the review's
needsCheckingAgain), and the compiled zone map is reused while the keys' geometry is the same.

Changed behaviour: hasZones (which stops Adaptive touch recording) now counts only zones that
parse, in the blocks a reader looks at; a file whose only zones are unreadable no longer pauses
it. keys(on:) returns the block or nil instead of a TypingConfigReview.Applied.

Verified (Studio, iPhone 17 Pro sim, iOS 27.2, Full Access on): a tap 3.35 pt inside r's area
types "E" with the key-off fixture's zones and "R" with no config or a words/aim-only config, on
the app built from this tree; memory and suite results are in the PR thread.
2026-11-23 12:47:08 -05:00
..
FullKeyboardEngine+Emoji.swift iOS: offer the emoji of the word being typed ("smile" → 😊) (#2461) 2026-11-22 22:05:22 -05:00
FullKeyboardEngine+Field.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+Hangul.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+HostText.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+Keys.swift ios: the keyboard reads a typing config (Settings › Experiments › Typing configs) 2026-11-23 12:47:08 -05:00
FullKeyboardEngine+Revert.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+Selection.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+SmartSpace.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+SwipeTyping.swift iOS: Apple's . key in web search fields (Safari's address bar) (#2460) 2026-11-22 21:58:46 -05:00
FullKeyboardEngine+Trackpad.swift iOS: group shared sources and split the full keyboard tests (#2448) 2026-11-22 18:18:35 -08:00
FullKeyboardEngine+TypingConfig.swift ios: typing config: compile the active config once per generation 2026-11-23 12:47:08 -05:00
FullKeyboardEngine.swift ios: the keyboard reads a typing config (Settings › Experiments › Typing configs) 2026-11-23 12:47:08 -05:00