tvOS: Search Keyboard Unresponsive After Dismissing Custom Controller with Embedded TVDigitEntryViewController

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

  1. Initialize and present a UISearchContainerViewController that contains a UISearchController with a results view controller.
  2. Within the search results, present a custom view controller containing TVDigitEntryViewController as a child, setting its modalPresentationStyle to .blurOverFullScreen.
  3. Dismiss the custom view controller without entering a PIN (e.g., by pressing the Menu button on the remote).
  4. 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 child TVDigitEntryViewController?
  • 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!

Screenshot with no keyboard.

@Nooralam Could you please share a link to a small test project that reproduces the issue. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

Hi @DTS Engineer, i have already made a demo test project for the issue, please checkout the repo: https://github.com/nooralam6/search-tvos-keyboard-issue-demo

If you check ResuktsViewController.swift, in didSelectItem of collectionView, we are presenting EnterPinViewController, if we don't use modalPresentationStyle as .blurOverFullScreen, and come back, the keyboard is focusable and can be interacted.

tvOS: Search Keyboard Unresponsive After Dismissing Custom Controller with Embedded TVDigitEntryViewController
 
 
Q