whats the difference between a textinput with axis vertical enable, and a texteditor?

Generated on 8/1/2024

1 search

The difference between a UITextInput with the vertical axis enabled and a UITextEditor lies in their intended use cases and the features they offer:

  1. UITextInput with Vertical Axis Enabled:

    • This is a configuration of a UITextInput (like UITextView) where the text input is oriented vertically.
    • It provides advanced text editing experiences, including inline editing, proofreading, and composition support.
    • Editable text views get the full suite of writing tools, while non-editable text views get an overlay panel.
    • It includes additional APIs for tracking and modifying the user interface experience, such as delegate notifications and properties for limiting behavior.
    • Menu actions provide commands in the macOS menu bar and in the iPadOS and visionOS keyboard shortcut menus.
  2. UITextEditor:

    • UITextEditor is typically used for more extensive text editing tasks, such as writing documents or long-form content.
    • It supports rich text formatting, including fonts, sizes, lists, and other attributes.
    • The formatting panel in UITextEditor supports text highlighting with predefined color schemes.
    • It allows for customization of the available controls and layout of the formatting panel using a custom configuration.
    • It is designed to handle more complex text editing scenarios, including the use of writing tools for proofreading and composition.

For more details on the advanced text editing experiences provided by UITextView, you can refer to the session What’s new in UIKit (16:04).

For information on controlling the behavior of text views and customizing writing tools, you can check out the session Get started with Writing Tools (09:03).