textView.keyboardDismissMode = .interactive
There was a bug on a particular iOS 26.2 beta, but it looks like it's already fixed