Post

Replies

Boosts

Views

Activity

Reply to How to reverse a custom Domain in Swift Charts?
The first screenshot doesn't display the 24th hour (hour 0 for the next day), because there is no event that happened between 23:00 and 23:59. If there were no events between 00:00 to 08:00, those hours would not appear on the chart if I don't set the domain myself. Using [0,24] did not work as the time is entered as a Date type, so using [datemax, datemin])did the trick. Thanks! Didn't see that option anywhere, where did you find it or how do you know that it was posible to do that?.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Reply to Custom `DiscreteFormatStyle` in live activities
Same problem here, but with widgets. I've created a custom DiscreteFormatStyle and have no problems using it with TimeDataSource<Duration> while the Text()view is rendered inside the app. If used on a widget, preview show a black widget and if run on simulator/device it throws the same errors and fails to load, getting stuck on the placeholder view. I've created a Feedback report with a sample project: FB16521246, I suggest you do the same and hopefully we'll get a solution or a fix
Topic: App & System Services SubTopic: General Tags:
Feb ’25