Post

Replies

Boosts

Views

Activity

Reply to New Swiftui Text timer not counting down
I am trying to use the following in a widget of mine that sometimes needs to show seconds counting down. Text(.now, format:.timer(countingDownIn: Date.now..<Date.now.addingTimeInterval(55), showsHours: false, maxFieldCount: 1)) If I sent maxFieldCount to 2 I see minutes and seconds ("55:03") but if I set it to 1 I see "55 seconds" instead. I expected to see something like "03" Oh, I also see the it's not counting down as previously mentioned. I was trying to use this instead, but cannot get rid of the minutes so I see values like "00:55" Text(timerInterval: Date.now...Date(timeInterval: 120, since: .now), countsDown: true, showsHours: false) I am trying these since my original widget code was using a timeline that would cause an update every second (if seconds needed to be displayed) but that caused flashing especially if the contrast between background and foreground colors is high.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24
Reply to Will FlatBuffers API be made available?
It's hard to specify requirements when there is no more information available. I current use Protobufs, but if Apple has a built in implementation of FlatBuffers that is available it makes more sense to use it unless there is something lacking in the implementation. I will file an enhancement request with what little information I have. (FB14055509) btw, why make such a big deal about FlatBuffers in the session video if its strictly an internal implementation detail? If there was no intent to make it available to others it seems an irrelevant to the primary content of the session video.
Topic: App & System Services SubTopic: General Tags:
Jun ’24