I believe the notification
UITextView.textDidChangeNotification
is what triggers
textViewDidChangeSelection(_ textView: UITextView)
to run.
However it does not trigger
textViewDidChange(_ textView: UITextView)
to run.
In fact which is "the" notification which triggers textViewDidChange to run?
I'm not sure firsthand how to answer your question, but the documentation states the following:
From here: Text View Did Change Documentation