tvOS Search: keyboard grid broke on RTL

Hi there!

I am working on a tvOS application with a UISearchController. I have a problem when the grid keyboard is selected in the settings (Settings->General->Keyboard Layout).

When i use RTL the whole search screen breaks because i use the built in segment control in UISearchController.searchBar.scopeButtonTitles When I do not add it, then everything is displayed well.

How can I fix this bug without creating a separate segment control object?

Environment

  • tvOS 16+
  • UIKit
  • The problem exists on the Simulator as well as on the Apple TVs I tested: 4K (2nd generation) and 4K (1st generation)
tvOS Search: keyboard grid broke on RTL
 
 
Q