Is text editor too complicated for iOS app development? Twitter launches open source API

Is text editor too complicated for iOS app development? Twitter launches open source API

Twitter today announced the launch of an "independent, flexible" open source API - Twitter Text Editor, which provides iOS developers with an in-app text editor. This is the same tweet edit box and Fleet editor used on the Twitter app for iOS. In today's announcement, Twitter said it is well aware that implementing a simple text editor in an iOS app is very complex, which is why Twitter provides the text editor API to everyone.

Twitter said the new text editor API solves common problems related to syntax highlighting and text content filtering. The company claims that Apple provides developers with a variety of text editing APIs, but they can be very limited or too complex to understand.

The high-level APIs do not provide enough functionality and control to create truly great in-app experiences. The lower-level APIs require a lot of knowledge about how text editing works in multiple languages, including support for bidirectional scripts, alternative input methods (such as those used for East Asian languages), and assistive technologies such as Braille keyboards.

The Twitter text editor encapsulates UITextView and provides a familiar delegate-based API, such as many common UIKit APIs. It extends LayoutManager and TextStorage to provide custom text properties, including properties for rendering custom emojis. The Twitter text editor has an event dispatcher to handle events, providing a consistent order of delegate callbacks for your code.

<<:  Ministry of Industry and Information Technology: Vigorously safeguard personal information security and achieve fundamental improvement in the consumption environment

>>:  Information on returning home policies in 31 provinces and cities: one-stop query on Alipay

Recommend

Nissan's design department changes leadership, where will future design go?

According to foreign media reports, Alfonso Albai...

An article to understand the communication between Android and Flutter

As a cross-platform solution, Flutter is often em...

Will eating noodles lead to malnutrition? 8 points to know

The summer solstice is here. In this sweaty midsu...

The complete secrets of SEO promotion revealed, only here!

The road ahead is long and arduous, but I will co...

4 essential elements of an event operation plan!

A complete activity plan should have the followin...

Did volcanic eruptions cause the fifth mass extinction?

The fifth mass extinction event, which occurred a...

Java vs. Node.js: An Epic Battle

[[160272]] Image source: Photo by Flickr user Tsu...

Aesthetic Corrective Makeup Ultimate Lifting Base Makeup Treatment

Introduction to the resources for the ultimate li...