I have a textfield like the one on the image below. I want the Textfield to be activated when the user taps on the white rounded rectangle or the text. Right now the tap has to be placed exactly on the text for it to do something. Setting a height for the textfield doesn’t seem to be helping.
One possible solution I have come up with, is using a text editor with a line limit of one instead and setting the frame to the one of the rectangle, but then the text is not centered.
Another solution could be using the new FocusState, but I see bug potential there.
Is there a better way of solving this?