Button(action: {
   for (value, range) in text.runs[\.foregroundColor] {
      if value != nil {
         print(String(text.characters[range]))
      }
   }
}, label: {
   Text("Find Color")
}).buttonStyle(.glass)