Hitting Space Bar continuosly resets cursor position in a UITextField with an external font set.

Given an empty UITextField, if I start hitting space bar continuosly, the cursor resets to the beginning after a while. This happens only when the textfield's font is set to a custom external font. So far, seeing this issue in iOS 12, 13 and 14

This was verified with a simple demo app.

Is this a confirmed bug?

The same problem occurs in UITextView. (reproduced on the following devices: iPhone Xs Max 14.3)

This problem can be solved by the following temporary measures.

func textViewDidChange(_ textView: UITextView) {
    textView.text = textView.text.replacingOccurrences(of: " ", with: "\u{2002}")
}

referenced this https://en.wikipedia.org/wiki/Whitespace_character

Hitting Space Bar continuosly resets cursor position in a UITextField with an external font set.
 
 
Q