struct ContentView: View {
   var myText: AttributedString {
      var text1 = AttributedString("SwiftUI")
      text1.font = .body.bold()
      text1.foregroundColor = .blue
      let text2 = AttributedString(" can show ")
      var text3 = AttributedString("attributes")
      text3.font = .body.bold()
      text3.backgroundColor = .red
      let text4 = AttributedString(".")
      
      var finalText = text1 + text2 + text3 + text4
      finalText.font = .title
      return finalText
   }
   var body: some View {
      Text(myText)
         .padding(10)
   }
}