Add this line in your makeUIView:
textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)