Post

Replies

Boosts

Views

Activity

Reply to Attributed String / Text in SwiftUI
The following should work: Text("\(Text("Hi there").foregroundColor(.red)) how are you?").foregroundColor(.blue) It will add the full text "Hi there how are you?" in the .strings file. It will also add "Hi there" as a separate entry, but I don't think there's a way around that, unfortunately.
Oct ’20