Best practices
Use a text view when you need to display text that’s long, editable, or in a special format.
Keep text legible.
Make useful text selectable.
Platform considerations
iOS, iPadOS
Show the appropriate keyboard type.
For the complete guidance, including worked examples and illustrations, see the canonical page: https://developer.apple.com/design/human-interface-guidelines/text-views