in older ios version i can click to textView to choose position to edit text if i input wrong text.
After IOS 15 i need to longClick and swipe to choose cursor position. Now i want to fallback the way choosing cursor to older version, can someone help me how to do it?
I can add click to textView like this:
messageInputBar.inputTextView.addGestureRecognizer(UITapGestureRecognizer(target:self, action: #selector(handleKeyboardWillShow(gesture:))))
But i can not know position to move cursor
Thanks in advance.