works well for me on macos 12.beta, xcode 13.beta, target ios 14.7 and macCatalyst 12.
Tested on macOS 12 and iPhone ios 14.7. You could try "Text(Date() + 60, style: .relative)"
struct ContentView: View {
var body: some View {
ScrollView {
Text(.init() + 60, style: .relative)
Text(.init() + 60, style: .date)
Text(.init() + 60, style: .time)
Text(.init() + 60, style: .timer)
Text(.init() + 60, style: .offset)
}
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: