The auto-updating DateStyle has second-granularity for durations <1hr

This commit is contained in:
Shadowfacts 2023-09-27 15:35:40 -04:00
parent 7534c7853e
commit 749e109165
1 changed files with 1 additions and 1 deletions

View File

@ -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)