Related: How To Customize Strings in Swift? Old but Gold: NSAttributedString As default, SwiftUI allows customizing Text() view like below: [crayon-6621644c01712889170338/] But when you try to show an NSAttributedString directly in Text(), you see an error: Let’s try to hack it! A custom UIViewRepresentable class will help us to avoid […]