Question

Is there an open source reimplementation of UITextView and UITextField using Core Text?

There's Apple's SimpleTextInput with SimpleCoreTextView and EditableCoreTextView classes, which explicitly says:

     File: SimpleCoreTextView.m
 Abstract: 

 A view that draws text, reasons about layout, and manages a selection over its text range.

 IMPORTANT: Its use of CoreText is naive and inefficient, it deals only with
 left-to-right text layout, and it is by no means a good template for any text
 editor.  It is a toy implementation included only to illustrate how to bind
 the system keyboard to some pre-existing text editor.

In other words, it doesn't handle e.g. Arabic, and is inefficient.

What alternatives do we have for a complete implementation of an editable text field or text view, based on Core Text and UITextInput family of protocols?

Was it helpful?

Solution

You can use or refer OmniGroup's TextEditor for implementation of an editable text field or text view, based on Core Text and UITextInput

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top