79475178

Date: 2025-02-28 10:18:39
Score: 1
Natty:
Report link

@AndreiG is right. TimelineView exists to avoid things like messing with id to force a refresh.

TimelineView(.periodic(from: .now, by: 1)) { context in
        Text(context.date.formatted(.dateTime.hour().minute().second()))
}

Adjust the formatting as you want.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @AndreiG
Posted by: Cenk Bilgen