IOS Swift touch screen issue

MyOwnKeyboard Pad app has 4 text views with textfields that use touch screen for editing. There is one view, Compose, that has a textfield and a textview (UIRepresentable). The app enters text into the view using textfield buttons. The app has total control of editing. When entering text if the screen is touched it conflicts the cursor position and creates an "out of bounds" failure. In that view the app does not need any touch events. I need a method in UIRepresentable to disable the touch event.

I am not familiar with UIRepresentable as this code was provided by Apple to solve a 16 bit unicode character issue.

What would be the code to disable touch events in the UIRepresentable compose view.

The app is free for a while until this problem is fixed. It is for iPads 11"+ .
The name in the app store is MyOwnKeyboard Pad.

I know some great engineer will find the answer.

DTS tried.

Thanks to all, maybe I'll sell some.

Charlie 25mar26

IOS Swift touch screen issue
 
 
Q