CombineCommunity / CombineCocoa

Combine publisher bridges for UIKit
MIT License
1.67k stars 133 forks source link

Bugfix for the textView crashing when adding emojis #73

Open ZvonimirMedak opened 2 years ago

ZvonimirMedak commented 2 years ago

While investigating the issue on our project, I've found an open issue here #34. I've been digging through the library and found out that when you try to add an emoji, you get an editingAttributes since the emojis are using a different font. If you receive that event, the textView will try to layout itself again which will cause a crash if it's not done on the Main queue.