UITextView
UITextView is a UIKit component that provides a scrollable, multiline text region for displaying and editing text. It supports both plain and attributed strings, making it suitable for note-taking, chat interfaces, or any UI that requires user input. It is a subclass of UIScrollView and implements the UITextInput protocol, enabling rich text editing features and a responsive scrolling experience.
Text rendering and editing: UITextView can display NSAttributedString, allowing per-character attributes such as font, color, and
Interaction and configuration: A delegate conforming to UITextViewDelegate receives events such as text changes and editing
Layout and accessibility: UITextView works with Auto Layout and can grow in height when not constrained by
Limitations and usage notes: While powerful for rich text, UITextView does not replace a full rich-text editor.