I’m making an app where the user needs to be able to type long pieces of text (like a journal article) but shouldn’t be allowed to edit it until a later stage in the app.
So I need to allow the user to type in a UITextField in a ‘forwards’ direction but completely disable being able to select the text further up and edit it (or even use the backspace).
There are plenty of answers already around disabling the selecting/editing (for example when using a picker view as the input e.g. Disabling user input for UITextfield in swift) but I can’t find anything that would allow for the behaviour I want and despite trying variations of the text field delegate methods I really cant get my head around where to go next at the moment.
I’m thinking I need to do 3 things
1) allow editing of the text field 2) disable selecting (by tapping for example) the text field 3) disable the backspace key?