I've got an image stored in the Assets folder, and my goal is to append it to a multiline text. I don't want to place it in an HStack; instead, I want it to appear at the end of the text, regardless of how many lines the text spans. Please refer to the image below for a visual example.
I'm aware that using Text(Image(systemName: "imageName")) is a suitable solution, especially for SFSymbols.
However, this approach isn't as effective when dealing with Asset images that exceed the font size of the text. The image below is by using the following code with an asset image.
Text(Image("info"))


I found a solution and wrote a brief article about it. I'm open to exploring alternative approaches.
Inline Text and Image
This is the code that made things work for me: