tvOS - inputView on UITextfield does not work

Hello, We would like to create a custom keyboard for our tv app, while also keeping the features of dictation and device input (via phone or pad).

However setting the inputView on the UITextField does not work. When the textfield is focused/selected it should show the inputView. Instead it does nothing, freezes and builds up memory usage slowly until it goes OOM and crashes.

Setting any view (empty UIView()) on a UITextField will reproduce the issue.

Reproducible on tvOS 16 and 17.

Test project added to github for reproduction: https://github.com/drs-st/test-tvos-custom-inputview/blob/develop/TestKeyboard/ViewController.swift