The auto-updating DateStyle has second-granularity for durations <1hr
This commit is contained in:
parent
7534c7853e
commit
749e109165
|
@ -168,7 +168,7 @@ struct ItemListEntryView: View {
|
|||
.foregroundColor(.red)
|
||||
Spacer()
|
||||
if let published = item.published {
|
||||
Text(published, style: .relative)
|
||||
Text(published, format: .relative(presentation: .numeric, unitsStyle: .narrow))
|
||||
.font(.caption.width(.condensed))
|
||||
.multilineTextAlignment(.trailing)
|
||||
.layoutPriority(-1)
|
||||
|
|
Loading…
Reference in New Issue