Hi everyone I am creating a text editor and I would like to know if there is the possibility to insert a Uibutton in the middle of the text. I am not referring to a url but to a real button.
For now I am creating the editor with a UIViewRepresentable and then with a regex I look for the part of the text to be transformed
Lorem ipsum dolor sit amet, <button id = "4"> consectetur adipiscing elit. Maecenas ornare </button> eget sapien vel gravida.
My goal is to transform the text between the <button>
tag into a UIButton or in any case into a tappable text that can perform an action. To understand the equivalent of
Button (action: {
self.mode = "normal"
}) {
Text ("title")
}
some idea? Is it possible to achieve this? Thank you!