Skip to content
Discussion options

You must be logged in to vote

For short snippets of text, you might be able to get away with using a LazyVGrid, like:

LazyVGrid(columns: [GridItem(.adaptive())]) {
    Text("Leading text ")
    Image("MyImage")
    Text(" trailing text.")
}

Other than that, I'm afraid your best bet might be to drop down to compose's annotated string builder. Better support for Swift's AttributedString is something we would very much like to have.

Alternatively, you could just stick to images that have emoji representations 😁

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dfabulich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants