I do have the same issue. It somewhat randomly happens on copy/paste in UITextFields in UITableViewCells.
I can also catch it in the debugger and I get the following: *** Assertion failure in -[_UITextKitTextPosition compare:], UITextKitTextViewEditingSupport.m:43. This does seem to be an iOS issue and not an issue in my code.
Others have also written about this issue:
https://varun04tomar.medium.com/invalid-parameter-not-satisfying-po-crash-on-ios-15-while-pasting-text-onto-uitextview-57e94bbca113
https://stackoverflow.com/questions/69568511/ios15-uitextview-after-dragging-the-view-it-causes-a-crash-invalid-parameter-n
Some people are suggesting to implement UITextPasteDelegate to work around the issue. In a large app implementing UITextPasteDelegate on all textfields is very cumbersome and I don't think that this is really the solution to this problem.
Has anyone found a better solution for this issue?
Will it eventually be fixed in a future iOS update?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: