Display SFSymbols along with text in SwiftUI

So I recently found an awesome shortcut which you can use to display SFSymbols inside Text along with a regular text string!

So I recently found an awesome shortcut which you can use to display SFSymbols inside Text along with a regular text string! Just add the SFSymbol like so:

Text("Hello World \(Image(systemName: "globe"))")

And that's it! The symbol will also adapt to the font and colors you've given to the Text.

Credits to this post on reddit.