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)
|
.foregroundColor(.red)
|
||||||
Spacer()
|
Spacer()
|
||||||
if let published = item.published {
|
if let published = item.published {
|
||||||
Text(published, style: .relative)
|
Text(published, format: .relative(presentation: .numeric, unitsStyle: .narrow))
|
||||||
.font(.caption.width(.condensed))
|
.font(.caption.width(.condensed))
|
||||||
.multilineTextAlignment(.trailing)
|
.multilineTextAlignment(.trailing)
|
||||||
.layoutPriority(-1)
|
.layoutPriority(-1)
|
||||||
|
|
Loading…
Reference in New Issue