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.
Post
Replies
Boosts
Views
Activity
I'm seeing the same thing. What is the solution here?
Does it help if you apply .layoutPriority(1) modifier to the Text?
Submitted FB7999069. I really hope they give us some APIs to control separators in the future iOS 14 Beta.