Little SwiftUI trick I found somewhere on the internet that everyone should know:

You can put SF Symbols perfectly inline with Text by… creating a Text with the symbol Image (?) and then adding the Texts together (!).

The subhead here is:

(
Text(Image(systemName: "cloud”)) .accessibilityLabel(“Streamable, ”) +
Text(" ") +
Text(dateStr)
)

A handy utility function to generate these: https://gist.github.com/marcoarment/fdd9c19995e8f9d16bc2d10cd8cefe39

SwiftUI Text with inline SF Symbols

SwiftUI Text with inline SF Symbols. GitHub Gist: instantly share code, notes, and snippets.

Gist

@marcoarment Nice! I found I was joining Text a lot so I made Text.joined(separator:) which really helped.

https://gist.github.com/ryanlintott/66b58972d8d05be83c9379bf35efeabb

An extension to Text that allows you to join an array of Text into a single Text with optional separators.

An extension to Text that allows you to join an array of Text into a single Text with optional separators. - Text+joined.swift

Gist