Initializes a text view.
- macOS 10.0+
The frame rectangle of the text view.
The text container of the text view.
An initialized text view.
This method is the designated initializer for
init(frame:), which builds up an entire group of text-handling objects, you use this method after you’ve created the other components of the text-handling system—a text storage object, a layout manager, and a text container. Assembling the components in this fashion means that the text storage, not the text view, is the principal owner of the component objects.