feat(search): use native tvOS keyboard - #60
Open
MagiqueDeveloper wants to merge 3 commits into
Open
Conversation
The Netflix-style search screen typed through a hand-built key grid (46x54pt keys, wrapped rows) and reached Siri dictation only through a mic button that summoned the modal system keyboard. The query header is now a real, focusable TextField, so the system keyboard renders as part of the screen: full-size linear alphabet, suggestions strip, and hold-speaker-button dictation, with no in-app mic button. Results layout (text index + poster grid), type filters, recent searches, and the keyboard collapse when focus enters results are preserved. Back from the results returns to the query field, matching the old Menu behavior. The custom keyboard, its layout engine, and the focus-transfer workarounds are deleted. View-model consolidation is intentionally not part of this change per maintainer direction.
Author
|
This is the basics, I may refine it with more commits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TextFieldcontrols in both Search styles.NetflixSearchViewModel.Why the native keyboard
The native tvOS keyboard was chosen instead of rebuilding the keyboard in SwiftUI because it is the more intuitive Apple TV experience:
The app still owns the visual presentation: the real text field remains focusable and connected to the search view model, while the surrounding glass styling hides the default focus platter and keeps the search page consistent with the rest of the app.
Verification
xcodebuild ... buildsucceeded for Apple TV 4K (3rd generation) simulator, tvOS 27.0.xcodebuild ... testsucceeded: 279 tests, 0 failures.Imagery
Closes #55