Working with AttributedString: how to the the string value of the 2nd run?

I need to display the time in 24-hour format regardless of locale (using this method). I need to know what's the separators for time display in hour minute second.

I wish I know how. Usually someFormatStyle.attributed usually produce an AttributedString with all the different parts annotated such that each run indicate what it is, something like this:

for run in result.runs where run.inlinePresentationIntent == .code {
  result[run.range].foregroundColor = .red
  result[run.range].backgroundColor = .mint
}
1 Like