Instance Method

textViewDidChange(_:)

Tells the delegate that the text or attributes in the specified text view were changed by the user.

Declaration

optional func textViewDidChange(_ textView: UITextView)

Parameters

textView

The text view containing the changes.

Discussion

The text view calls this method in response to user-initiated changes to the text. This method is not called in response to programmatically initiated changes.

Implementation of this method is optional.

See Also

Responding to Text Changes

func textView(UITextView, shouldChangeTextIn: NSRange, replacementText: String) -> Bool

Asks the delegate whether the specified text should be replaced in the text view.