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: the full keyboard fits the iPhone Duo, and its strip keeps one height On the iPhone Duo (iPhone19,4) the full keyboard used iPhone geometry in every posture. Unfolded, both size classes are regular, so the wide 951 x 669 pt screen got portrait metrics: 73 pt wide, 45 pt tall keys on 56 pt rows where Apple's are 38.7 pt on 51.7 pt rows, and 59.7 pt rows when turned. iOS also sets third-party keyboards in an inset platter there (452 of 466 pt folded, 655 of 669 and 801 of 951 pt unfolded), so Hex's 6.5 pt margins put its keys well inside Apple's. The keyboard now reads a KeyboardPosture (phone, cover, unfoldedWide, unfoldedTall) from its window's screen and the model identifier, and on the Duo uses Apple's row pitch for that screen and starts its keycaps as far from the screen's side as Apple's (measured in the iOS 27.2 simulator: rows within 2 pt of Apple's, keycaps within 0.5 pt). The strip was 44 pt with row 1 right under it, 39 pt in landscape, and grew 16 pt while dictating, so the band above the keys measured 45 pt on iPhones in portrait, 40 pt in landscape, 61 pt while recording, and 46-58 pt on the Duo. Apple's band is 51-53 pt everywhere. The strip is now Apple's 44 pt bar in both orientations and every state, with 8 pt under it on iPhones (row 1 at 52 pt; keyboard 270 pt portrait, 189 pt landscape) and none on the Duo, where iOS draws its own band above third-party keyboards. Dictating no longer grows the keyboard (removed recordingLiftHeight); the recording bar fills the strip. Row 1 takes touches across the gap, as Apple's keys reach about 8 pt above their keycaps. Verified: xcodebuild test (304 tests, 0 failures, 1 skipped) with new KeyboardLayoutTests cases for the Duo's postures and the pinned strip; before and after screenshots of the extension in Hex's field, Messages, Safari's address bar and Settings search on the iPhone 17 Pro, 17 Pro Max and SE (portrait and landscape) and the Duo folded, unfolded upright and turned, next to Apple's keyboard. Key sizes on the iPhones are unchanged. * iOS: the full keyboard splits on the unfolded iPhone Duo, as Apple's does Two testers (the latest on build 50) asked for Apple's split keyboard on the iPhone Duo unfolded in landscape. Apple's keyboard splits there (iOS 27.2 simulator, the inner screen wider than tall), so Hex's now does too, in that posture only (KeyboardPosture.splitsKeyboard); everywhere else the keyboard is unchanged. The halves copy Apple's measured split (SplitGeometry): 46.3 pt keys on a 57 pt pitch at the keyboard's sides, row 2 half a key in and row 3's letters a key and a half, shift and delete 63.3 pt, 123 66.7 pt, globe and emoji 40.7 pt, return 66 pt, a space bar on each half, and an odd row's middle key on both halves (G and V in English, as Apple's). Every layout and page splits by that rule; only English was measured against Apple. The middle between the halves is no key's: touch targets tile each half and a tap there types nothing. The strip moves over the right half, where Apple's predictions are; the recording bar still spans the top. Spatial autocorrect reads taps as on the unsplit keyboard (KeyboardLayout.unsplitX), so either G is one key, and the neighbouring-letter reach never crosses the middle. No setting: Apple's split follows its own Split Keyboard preference, which a keyboard extension can't read. Verified: xcodebuild test (325 tests, 0 failures, 1 skipped) with new cases in KeyboardLayoutTests (Apple's halves and positions, targets leaving the middle to no key for every layout and page, the halves rule) and FullKeyboardEngineTests (typing on both halves, both space bars, a tap in the middle, accents and the delete-word slide on the split layout); screenshots of the extension next to Apple's split keyboard on the unfolded Duo simulator. AXe can't send touches to the Duo's inner screen, so typing there was checked through the engine's touch path, not AXe. |
||
| .. | ||
| Assets.xcassets | ||
| zh-Hans.lproj | ||
| AcknowledgementsView.swift | ||
| AppleSpeechTranscriber.swift | ||
| AppShortcuts.xcstrings | ||
| AudioBackend.swift | ||
| ContentView.swift | ||
| CustomVocabularyEditor.swift | ||
| DictationController+LaunchFixtures.swift | ||
| DictationController.swift | ||
| EmojiSemanticIndex.swift | ||
| FullKeyboardSnapshotStage.swift | ||
| HexIntents.swift | ||
| HexLinks.swift | ||
| HEXMobile.entitlements | ||
| HEXMobileApp.swift | ||
| Info.plist | ||
| KeyboardPreviewHost.swift | ||
| KeyboardSetup.swift | ||
| LanguageSettingsRows.swift | ||
| LiveActivityCoordinator.swift | ||
| Localizable.xcstrings | ||
| Onboarding.swift | ||
| OnboardingProgress.swift | ||
| ParakeetTranscriber.swift | ||
| PrivacyInfo.xcprivacy | ||
| SettingsComponents.swift | ||
| SettingsPages.swift | ||
| TranscriptCleanup.swift | ||
| TranslateDictationRow.swift | ||
| TypingInsightsView.swift | ||
| TypingLogsView.swift | ||