I have a TextEditor
, which is covered by another View in ZStack
:
ZStack {
TextEditor()
MyView()
}
Now when I tap on MyView
, my TextEditor
received this tap and get focused. My goal is to process tap only in MyView
.
One possible solution is to make TextEditor .disabled, but in this case it becomes unscrollable. Another option is to pass to TextEditor .constant data, but it anyway remains tapable and focusable.
I want to achieve this behaviour:
- MyView process taps
- TextEditor ignores taps and not focusing but remains scrollable
New contributor