Is there a way to format text within a Text view? I couldn't figure out how to use NSAttributedString as input for Text. I have Catalina Beta 6.
Instead of using the
HStack {
Text("Hello")
Text("World").italic()
}
Solution proposed above, you should use the + operator between Text() as mentioned in the link below
https://www.hackingwithswift.com/quick-start/swiftui/how-to-combine-text-views-together
Text("Hello")
+
Text("World")
.italic()