PINCH is not working properly in IOS 17.2 like 15.4

In my application, a textview and attributed text (with different font and color in it). With IOS 15.4 it is working fine without a code, but with IOS 17.2; when I pinch and zoom in, the text comes to left side like a invisible column and zoom in. It's not working properly. But WHY ?... and most inportant... How can I fix it ? Thanks...

PINCH is not working properly in IOS 17.2 like 15.4
 
 
Q