I encountered the same problem,use:
textView.layoutManager.allowsNonContiguousLayout = false
I really don't understand why this is happening, it has been bothering me for too long!
Post
Replies
Boosts
Views
Activity
I used Apple Pencil to input text on UITextView, but the program crashed when I long pressed and tried to use the insert function.
warning: Module "/Users/baochengzhu/Library/Developer/Xcode/iOS DeviceSupport/iPad14,1 17.0.3 (21A360)/Symbols/usr/lib/libobjc.A.dylib" uses triple "arm64e-apple-ios17.0.0", which is not compatible with the target triple "arm64-apple-ios11.0.0". Enabling per-module Swift scratch context
who can help me ?