Want to check if we have fixed the issue? I am trying to use this to get a format
// maxFieldCount: 2: "1:23" (hours and minutes only) as mentioned here https://developer.apple.com/documentation/swiftui/systemformatstyle/stopwatch but still getting 1 hour, 23 mi..
when i use showsHours: true and maxFieldCount: 3 it shows correct format. But i want to show always specific digits. I expect the documented answer
Text(
.currentDate,
format: .stopwatch(
startingAt: interval.lowerBound,
showsHours: true,
maxFieldCount: 2,
maxPrecision: .seconds(1)
)
)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: