@unixzii found that the bug is because when inputing Chinese, SourceEditorContentView are triggering setNeedsLayout during its view layout life cycle. And he came up with a patch for it.
Hook the layoutSublayers implementation and add a timer to it. If it was called more than 100 times in 0.1 second, ignore the rest of call temporary.
See patch and workaround here. https://github.com/unixzii/XcodePatch
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: