hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 7894cac951
iOS: never ask for Speech Recognition, and slides from 123 show the key preview (#2109)
* iOS: Apple Speech never asks for Speech Recognition, so declining it no longer blocks setup

A TestFlight tester (build 51, iOS 27.0.1) declined Speech Recognition. Hex then
showed "Finish setup · 1 step", a red home banner and a permanent keyboard strip
message, "Speech Recognition access is required to use Apple Speech", while
in-keyboard dictation kept working.

That permission covers SFSpeechRecognizer, which Hex doesn't use. SpeechAnalyzer
(SpeechTranscriber and DictationTranscriber) runs on the iPhone without it
(Apple's "Asking Permission to Use Speech Recognition"; the keyboard never
asked). Only AppleSpeechTranscriber.prepare asked, and a denial failed the app's
speech model, which the setup row, home and the keyboard strip all showed.

Removed: the request, the authorizationDenied error and its string. Kept:
NSSpeechRecognitionUsageDescription, which Apple says to include whenever an app
uses the Speech framework; it already says on-device and is no longer shown.
iOS 18-25 dictates with Parakeet and never used Speech Recognition.

Verified on an iPhone 16 Pro simulator (iOS 27.2) with the permission denied in
TCC: origin/dev shows the banner and strip message on the Apple Speech path
(German); this build shows neither and reaches Ready; a fresh install never
prompts and leaves no Speech Recognition record. xcodebuild test: 361 tests,
0 failures. The clip test now reports the permission state.

* iOS: holding 123, #+= or shift and sliding shows the key under the finger, as Apple's does

A TestFlight tester (build 51) saw no pop-up while sliding from 123. Hex already
typed the key the finger lifted on and went back to letters, but only character
presses drove the pop-up, so nothing showed which key the finger was over.

Now a 123, ABC, #+= or shift press tracks the character key under the finger
(ActiveTouch.slideKey). That key shows its pop-up, or darkens with Key pop-ups
off. Lifting types it and goes back to the page the press came from. Back on
the page key after a slide types nothing and goes back. Off the keys types
nothing and the page stays. Shift and slide now types the capital, as Apple's
does (it typed nothing before). None of these is a swipe: swipes start on
letters only.

Compared with Apple's keyboard in the same simulator (iPhone 16 Pro, iOS 27.2):
the pop-up and the lift match for 123, #+= and shift. Apple also opens a
slid-to key's accent menu after a hold; Hex doesn't (unchanged). New
FullKeyboardEngineTests cases; xcodebuild test: 361 tests, 0 failures.
2026-11-20 23:04:26 +00:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: several keyboard languages, switched on the space bar, with bilingual autocorrect (#2104) 2026-11-20 22:08:01 +00:00
CleanupTaggerTests.swift iOS: Italian, French and Portuguese layouts that autocorrect in their own language; spoken @ and email addresses (#2069) 2026-11-20 16:43:10 +00:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: never ask for Speech Recognition, and slides from 123 show the key preview (#2109) 2026-11-20 23:04:26 +00:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardEngineTests.swift iOS: never ask for Speech Recognition, and slides from 123 show the key preview (#2109) 2026-11-20 23:04:26 +00:00
HexKeyGestureTests.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
KeyboardBridgeTests.swift iOS: dictation styles apply in the keyboard and read differently, plus Lowercase (#2103) 2026-11-20 21:47:04 +00:00
KeyboardLayoutTests.swift iOS: keyboard fits the iPhone Duo and splits when unfolded, and the strip keeps one height (#2105) 2026-11-20 22:19:23 +00:00
ShiftStateMachineTests.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoderTests.swift iOS: swipe typing for English and Spanish (Experiment, off by default) (#2106) 2026-11-20 22:30:53 +00:00
TranscriptCleanupTests.swift iOS: dictation styles apply in the keyboard and read differently, plus Lowercase (#2103) 2026-11-20 21:47:04 +00:00
TypingLogTests.swift iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05:00