3 ms·
You can have attributed strings! After a fashion: Text("Hello,").italic() + Text("World!").fontWeight(.bold) Works with multiple lines, multiple font size
by Razengan 7y ago
You can have attributed strings! After a fashion:
Text("Hello,").italic() + Text("World!").fontWeight(.bold)
Works with multiple lines, multiple font sizes etc.
Another undocumented gem that I discovered via the SwiftUI community. You should be able to build a constructor that reads a string with formatting codes like Markdown and spits multiple Text views.