What: Apple changed its Ukrainian iPhone keyboard in iOS 27. Before it
(iOS 26.2, 26.4 and 26.5 simulators) it is Russian's ЙЦУКЕН with і for ы and
є for э: 11, 11 and 9 keys, every shared letter on Russian's key, shift and
delete one letter wide, ї on a held і, ґ on a held г, ʼ only on the 123 page.
From iOS 27 (27.0 and 27.2) it is the 12, 12 and 10 keys Hex copied in #2128.
Hex drew the iOS 27 rows everywhere, so on iOS 26 every letter after й sat up
to a key off from the iPhone's own Ukrainian keyboard and from Russian's
(TestFlight build 123, iPhone 12 on iOS 26.6.2: "UA & RU have different key
positions ... the Ukrainian keys are noticeably smaller"). Hex's Ukrainian now
picks its rows and holds by the running iOS: on iOS 26 it is iOS 26's
keyboard, on iOS 27 the letters are unchanged.
Also on both versions: Apple's Ukrainian 123 and #+= pages have ʼ (U+02BC)
where English has ', holding ` ‘ ’ ' ʼ, and typing it goes back to the letters.
Hex showed the plain '; now it is ʼ with those options.
Changed (for the Rust core move):
- KeyboardLanguage: systemMajorVersion (from ProcessInfo, settable by tests)
and ukrainianHasTwelveKeys; ownLetterRows and letterHolds for .ukrainian
pick by it (iOS 26: і -> ї, г -> ґ; ʼ's list kept on both for the pages'
key). keyCoordinates is untouched: Ukrainian's [0, 0, 1] offsets fit both
(row 3 starts under ц).
- KeyboardLayout.characterRows: Ukrainian's 123/#+= apostrophe is ʼ.
- KeyboardLayerState.didInsert: ʼ returns to the letters like '.
- FullKeyboardEngine, TypingDecoder, AdaptiveTouch, next-letter odds, swipe:
untouched. They read the layout's keys (AdaptiveTouch and the odds take
isLetter keys from layout.keys) or keyCoordinates, so they follow the rows
drawn; Ukrainian has no typing model (dictionary engine). Autocorrect's
neighbour-key table (AutocorrectEngine+Distance) is built once from
keyCoordinates, so it gets the running version's rows.
Verified: Apple's keyboards measured as a black box on Studio simulators
(iPhone 12 and 17 Pro, iOS 26.5 and 27.2, portrait and landscape; rows also on
26.2, 26.4, 27.0; every letter held and screenshotted). Hex this branch over
Apple's keycaps: Ukrainian and Russian within 0.34 pt horizontally on iPhone 12
26.5/27.2 portrait and landscape (origin/dev was up to 57 pt off on 26.5). Real
HID touches on the iPhone 12 iOS 26.5 sim: "пʼять обʼєктів їжі, ґанок і
європейський" typed exactly (ʼ from the 123 page, ї and ґ held); a slide on
the space bar Ukrainian -> Russian -> Ukrainian keeps every key's x. New cases
in KeyboardLayoutTests (testUkrainianBeforeIOS27IsRussiansRows) and
FullKeyboardEngineTests (testUkrainianOnIOS26TypesHeldLettersAndThePagesApostrophe);
the two existing asserts that Ukrainian's 123/#+= keys equal English's now
compare frames and expect ʼ. ios/README updated.