no worries then, just wrap the content of .onTapGesture {...} with "DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { ...} . It's a bit of a hack but should work.
I'm glad it helped. What functionality are you looking for?, given that your question was "I'm asking how to implement simple Undo and Redo buttons in this TextEditorView for the iPhone specifically".
You could use an alternative to nwcat code.
There are some good modern networking Swift packages on github, such as Alamofire and
Networking from freshOS that may be of help, including the JSON decoding.
sorry, I misread your question, even though it is in big letters, "SwiftUI Map()". I pasted my answer for UIViewRepresentable in haste. Unlike most other forum, I cannot find a way to delete my answer.
no worries then, just wrap the content of .onTapGesture {...} with "DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { ...} . It's a bit of a hack but should work.
I'm glad it helped. What functionality are you looking for?, given that your question was "I'm asking how to implement simple Undo and Redo buttons in this TextEditorView for the iPhone specifically".
You could use an alternative to nwcat code.
There are some good modern networking Swift packages on github, such as Alamofire and
Networking from freshOS that may be of help, including the JSON decoding.
sorry, I misread your question, even though it is in big letters, "SwiftUI Map()". I pasted my answer for UIViewRepresentable in haste. Unlike most other forum, I cannot find a way to delete my answer.