I want to align a small image right next to multiline text at THE LAST WORD for the text in a HStack like below:
But when i do this the Image is at the same level of the last line in multine line text BUT there is spacing between them as if the image is outside of the Text's frame(not sure),
How can i have the image right next to the Multiline Text?
Code Block struct TextWithImageNextToIt: View { var body: some View { HStack(alignment: .lastTextBaseline, spacing: 0) { Text("Long Multine Line Text in List.adhjshdsjhdshdjshdjsbdjbdsajdbjbdajbdsajdbjasbdjadbajbdjabdjadbjadbjasdddfds") Image(systemName: "pencil") } } }
But when i do this the Image is at the same level of the last line in multine line text BUT there is spacing between them as if the image is outside of the Text's frame(not sure),
How can i have the image right next to the Multiline Text?