Initializer

init(frame:textContainer:)

Creates a new text view with the specified text container.

Declaration

init(frame: CGRect, textContainer: NSTextContainer?)

Parameters

frame

The frame rectangle of the text view.

textContainer

The text container to use for the receiver (can be nil).

Return Value

An initialized text view.

Discussion

This is the designated initializer for UITextView objects.

See Also

Initializing the Text View