According to Apple's documentation, the only self-updating SwiftUI view is Text
, configured to display a relative date or time. See Displaying Dynamic Dates in Widgets for details.
The options are:
Text(futureDate, style: .relative)
Text(futureDate, style: .offset)
Text(futureDate, style: .timer)
Text(aprilFirstDate, style: .date)
Text("Date: (aprilFirstDate, style: .date)")
Text(startDate ... endDate)
Text("The meeting will take place: (startDate ... endDate)")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…