Im looking at Apples Sample SimpleTextInput code , which is a sample project for an iOS text editor that uses Core Text to display text. This is a wonderful thing.
But the ReadMe document says:
This sample code should not be considered as a template for a text editor, but rather as an example of how to bind a text input system to an existing text editor. Using the CoreText project is naive and inefficient; it only touches the text layout from left to right, and this is by no means a good template for any text editor. This is an implementation intended only to illustrate how to attach a system keyboard (that is, a text input system) to some existing text editor.
I am wondering how this text editor is inefficient. Is this something fundamental in his design? Maybe this can improve simple settings? UITextView can have really complex caching algorithms hidden in it; so will the problem be that SimpleTextInput is missing them?
source share