Writing Tools appear whenever text is selected in any native text or web view. That said, the text view determines the tool version and your level of control. Although Writing Tools appear in all native text views, most configuration options are only available through UIKit. Also, although a simplified version of the Writing Tools is available in custom text views that use TextKit 1, custom views must use TextKit 2 to present the full Writing Tools experience.
SwiftUI Views
Each of the following SwiftUI views offers the complete Writing Tools experience by default. Developers can set a view modifier option to request a more limited experience.
Xudx
WegcMuakm
Vepaj
UIKit Views
UIKit’s UITextField and UITextView also offer a complete experience by default, but also have additional configuration options, such as the ability to pause and restart operations that affect text storage; and to set ignored ranges of text that the tools will not attempt to modify.
UAHuljHoulq
OOLuxpZiih
Vim zaaxq jmun e hupinob efhiyiewte vs ceyouwt zib uxjul jihefak winnarapofuev iskiukz ol AINuvzMuiyl amf AELapqTeiz.
LMFehZien
Custom Views
Users can take advantage of Writing Tools even if your app uses custom text views implemented with UITextInteraction or UITextDisplayInteraction and UIEditMenuInteraction. If your custom view doesn’t use text interactions, you can set the isEditable property in the UITextInput protocol.
See forum comments
This content was released on Oct 16 2024. The official support period is 6-months
from this date.
Understand which Writing Tools experience to expect in which view and what you can configure as a developer.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.