i have this example code:
let longString = """
imagine here is a really really long Text. **This is in bold**. This is not in bold
"""
struct ContentView: View {
var body: some View {
Text(longString)
}
}
But this is not working. I get the Text with the ** in the View, but I want it in bold.
If I do this:
Text("imagine here is a really really long Text. **This is in bold**. This is not in bold")
This works.
Why is that and how I can use bold Text from a String in this case?
Thank you for taking your time to help me