danielsaidi / RichTextKit

RichTextKit is a Swift SDK that helps you use rich text in Swift and SwiftUI.
MIT License
929 stars 122 forks source link

iOS 18 Text Editing Bug #194

Open Shomotion opened 1 month ago

Shomotion commented 1 month ago

Having a weird bug with the iOS 18 update. When tapping the last word in a line, RichTextKit adds a space in the new OS. I tested on the simulator because I don't have devices that support both these versions. Below are some screen videos.

I wish I could be more helpful, but I don't know UIKit and I haven't been able to dive into the RichTextKit code!

https://github.com/user-attachments/assets/68f1a08b-a6c5-4175-a841-551c538638f1

https://github.com/user-attachments/assets/e91e4734-21c3-4179-beee-2f28001fdfc5

danielsaidi commented 1 month ago

Hi @Shomotion

That's very weird - not sure what may be causing this since the text field shouldn't insert anything by itself.