Working in WidgetKit on the watch, I can't figure out how to style this text so that it looks correct. The problem is that, in locations where Am/Pm time styles are appropriate, the system only wraps the M to the next line, where I would like both AM and PM to wrap to the second line. In locations where they use a 24 hour clock, there should be no AM and PM. How can I achieve this?
static let sleepTimeFormat: DateFormatter = {
let formatter = DateFormatter()
formatter.dateStyle = .none
formatter.timeStyle = .short
return formatter
}()
Text("\(targetBedTime, formatter: Self.sleepTimeFormat)")
.font(.system(size: 14))
.fontWeight(.bold)

You can use
ViewThatFitsplus replace spaces with newlines to make this work.And the result: