hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 4a70c3beb6
iOS keyboard: the top bar is Apple's prediction bar, as thick as Apple's, with its bubble and dividers (#2375)
* iOS keyboard: the top bar is Apple's prediction bar, as thick as Apple's, with its bubble and dividers

What: on an iPhone the strip above the keys is now Apple's whole prediction bar
instead of the part below its pill. Measured as a black box beside Hex in the same
plain field on iOS 26.5 and 27.2 (iPhone 17 Pro, Air, 17 Pro Max and SE, upright
and turned, light and dark): Apple's bar is 44 pt from the keyboard's top edge on
every iPhone, row 1's keycaps 8 pt under it upright and 6 pt turned; its words,
dividers and highlight centre 25 pt down; the highlight behind a pending
autocorrection fills its cell across, a 38 pt capsule from 6 pt down to the bar's
bottom; the dividers are 1 x 24 pt, hidden beside the highlight. So:
- upright the strip is 44 pt (was 38) with 8 pt under it: Hex grows 6 pt upward
  (rows stay on the same screen pixels) and its top edge is Apple's exactly:
  253 pt on a 17 Pro (was 247), 260 on an SE (254), 272 on an Air or Pro Max (266);
  on iOS 26 260 and 270 (254, 264)
- turned the strip is 44 pt (was 42) with 6 pt under it (was 8): same height
- the words sit 25 pt down (were 20 pt below a 6 pt lower edge), a pending word
  gets Apple's cell-wide bubble instead of an 18 pt chip around it, dividers are
  24 pt (were 18) and hide beside the bubble
- the Hex key takes a 59 pt cell at its end of the bar, as Apple's writing tools
  icon has at the other (TestFlight screenshot, iPhone 17 Pro Max, iOS 27.2.1),
  with a divider between it and the word beside it; the three cells share the
  rest (they were thirds of the bar with the Hex key's room cut from one). The
  key keeps its 44 x 28 pt mark, centred in its cell on the words' line, and its
  touch area now spans the whole cell across.
- the 17 pt band iOS sometimes adds above a third-party keyboard is not designed
  for: there Hex is 17 pt taller than Apple's. Height is one value per phone,
  orientation and iOS version.
- a view shorter than Hex asks for (Spotlight, #2280): the bar gives up its 6 pt
  over the old 38 pt strip first, so up to 6 pt short every key stays whole and in
  place; beyond that the rows shrink as before.
- iOS 18 (unmeasured) keeps the 38 pt strip and its numbers.
Replaces the 38 pt strip decision (PR #2256 era) and the small 18 pt chip. The
Duo, the iPad and the dictation bar keyboard (146 pt) are unchanged.

Code: KeyboardMetrics.appleBar, withAppleBar(turned:), appleBarIsMeasured
(systemMajorVersion >= 26), Apple's constants; stripTextCenter / stripPillHeight /
stripChipHeight follow it; fitted gives the bar's extra first; letterRows applies
it to the phone posture. KeyboardLayout: the Hex key's cell and centred mark,
slots as thirds of what the cell leaves. KeyboardStripView: cell-wide bubble,
dividers hidden beside it, divider beside the Hex key. The app's snapshot stage
gains bar states (revert, two cells, Paste, Paste dictation, Code from Messages,
selection) and --short-by.

Verified (Studio simulators): Hex's top edge equals Apple's to 0 pt upright on all
four phones on both iOS versions (turned 0 pt on 27.2, Hex 0.33 pt taller on 26.5),
key rows on the same screen pixels as origin/dev, the bubble at 6-44 pt as Apple's,
words 0.33 pt lower than Apple's. Real HID touches (17 Pro Max, 27.2): 9 points in
each cell pick that cell's word, the Hex key's cell never types; a sentence types
exactly upright and turned. Updated expected numbers in KeyboardLayoutTests (the
heights 247/254/266 -> 253/260/272, the strip 38/46/28 -> 44/52/38, Hex key x,
slot thirds, short views giving the bar first, iOS 18/25 keeping the old strip);
new cases for 6 pt short. xcodebuild test: all pass. code-shape passes.

* iOS keyboard: the strip's geometry moves beside the strip view

What: KeyboardMetrics' strip constants and computed geometry (the 38 pt strip, Apple's bar,
stripInset, stripPillHeight, stripTextCenter, stripChipHeight, stripLineBand, withAppleBar)
move unchanged from KeyboardLayout.swift into a nonisolated extension at the end of
KeyboardStripView.swift; rebuilt(...) is internal for it. Why: rebased onto dev (Dvorak
punctuation keys, #2373), KeyboardLayout.swift reached 1,555 lines against the 1,500 cap
(scripts/code-shape.py failed); it is 1,463 now. No behaviour change.

Verified: xcodebuild test (iPhone 17 Pro, iOS 27.2) on the rebased head: 853 tests,
0 failures, 3 skipped; python3 scripts/code-shape.py passes.
2026-11-22 10:20:43 -05:00
..
Assets.xcassets iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
zh-Hans.lproj iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
AcknowledgementsView.swift iOS: Multilingual model (Parakeet Ultra) experiment, off by default (#2197) 2026-11-21 09:29:13 -05:00
AppleSpeechTranscriber.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
AppShortcuts.xcstrings iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AudioBackend.swift iOS: dictation picks the car's mic in CarPlay, and a warm session never holds call audio (#2179) 2026-11-21 07:21:46 -05:00
ContentView.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
CustomVocabularyEditor.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DictationController+Engine.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
DictationController+LaunchFixtures.swift iOS: Settings and the setup sheet say what needs Full Access (#2304) 2026-11-21 21:35:58 -05:00
DictationController+ModelPreparation.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
DictationController.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS keyboard: the top bar is Apple's prediction bar, as thick as Apple's, with its bubble and dividers (#2375) 2026-11-22 10:20:43 -05:00
HexIntents.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
HexLinks.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
HEXMobile.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
HEXMobileApp.swift iOS: add a Greeklish experiment for Greek dictation (#2366) 2026-11-22 08:51:48 -05:00
Info.plist iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
KeyboardPreviewHost.swift ios: give the dictation bar's top row 44 pt hit areas (#2258) 2026-11-21 16:37:47 -05:00
KeyboardSetup.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
KeyboardSpeechPreparation.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
LanguageSettingsRows.swift iOS: add a Greeklish experiment for Greek dictation (#2366) 2026-11-22 08:51:48 -05:00
LiveActivityCoordinator.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
Localizable.xcstrings ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
Onboarding.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
OnboardingPieces.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
OnboardingProgress.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnDeviceSpeechTranscriber.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
ParakeetTranscriber.swift iOS: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -05:00
ParakeetUltraDownload.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
ParakeetUltraModel.swift iOS: the multilingual model experiment never takes dictation away; its download says what it's doing and recovers (#2337) 2026-11-22 02:25:14 -05:00
ParakeetUltraTranscriber.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
SettingsPages.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -05:00
SpeechEngineChoice.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
TranscriptCleanup.swift fix(labs): Apple Intelligence cleanup never pastes an answer or a preamble (#2212) 2026-11-21 13:43:24 -05:00
TranslateDictationRow.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
TranslationSessionHost.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TypingInsightsView.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
TypingLogsView.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00