Description
I'm developing a tvOS application where I utilize a UISearchController
embedded within a UISearchContainerViewController
for search functionality. In a particular flow, a custom view controller contains a TVDigitEntryViewController
as a child, with its modalPresentationStyle
set to .blurOverFullScreen
. The issue arises when a user initiates the PIN entry but decides to cancel and return to the search interface without entering a PIN. Upon returning, the search keyboard is no longer visible, and attempts to focus or interact with it are unsuccessful.
Steps to Reproduce
- Initialize and present a
UISearchContainerViewController
that contains aUISearchController
with a results view controller. - Within the search results, present a custom view controller containing
TVDigitEntryViewController
as a child, setting itsmodalPresentationStyle
to.blurOverFullScreen
. - Dismiss the custom view controller without entering a PIN (e.g., by pressing the Menu button on the remote).
- Observe that upon returning to the search interface, the keyboard is missing, and focus interactions are unresponsive.
Observed Behavior
After dismissing the custom view controller with TVDigitEntryViewController
, the search keyboard does not reappear, and the focus system seems to lose track of the search input field.
Expected Behavior
The search keyboard should remain visible and functional after dismissing the custom view controller, allowing users to continue their search without interruption.
Additional Context
I have reviewed the TVDigitEntryViewController
documentation (developer.apple.com) and related discussions on the Apple Developer Forums but have not found a solution to this specific issue.
Questions
- Has anyone encountered a similar issue or have insights into why the search keyboard becomes unresponsive after dismissing a
.blurOverFullScreen
modal with a childTVDigitEntryViewController
? - Are there recommended practices to ensure the search keyboard remains active and focusable after such modal presentations?
Any guidance or suggestions would be greatly appreciated. Thank you!