mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* 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. |
||
| .. | ||
| Assets.xcassets | ||
| zh-Hans.lproj | ||
| AcknowledgementsView.swift | ||
| AppleSpeechTranscriber.swift | ||
| AppShortcuts.xcstrings | ||
| AudioBackend.swift | ||
| ContentView.swift | ||
| CustomVocabularyEditor.swift | ||
| DictationController+Engine.swift | ||
| DictationController+LaunchFixtures.swift | ||
| DictationController+ModelPreparation.swift | ||
| DictationController.swift | ||
| EmojiSemanticIndex.swift | ||
| FullKeyboardSnapshotStage.swift | ||
| HexIntents.swift | ||
| HexLinks.swift | ||
| HEXMobile.entitlements | ||
| HEXMobileApp.swift | ||
| Info.plist | ||
| KeyboardPreviewHost.swift | ||
| KeyboardSetup.swift | ||
| KeyboardSpeechPreparation.swift | ||
| LanguageSettingsRows.swift | ||
| LiveActivityCoordinator.swift | ||
| Localizable.xcstrings | ||
| Onboarding.swift | ||
| OnboardingPieces.swift | ||
| OnboardingProgress.swift | ||
| OnDeviceSpeechTranscriber.swift | ||
| ParakeetTranscriber.swift | ||
| ParakeetUltraDownload.swift | ||
| ParakeetUltraModel.swift | ||
| ParakeetUltraTranscriber.swift | ||
| PrivacyInfo.xcprivacy | ||
| SettingsComponents.swift | ||
| SettingsPages.swift | ||
| SpeechEngineChoice.swift | ||
| TranscriptCleanup.swift | ||
| TranslateDictationRow.swift | ||
| TranslationSessionHost.swift | ||
| TypingInsightsView.swift | ||
| TypingLogsView.swift | ||