Hello,
we've been working with the Swift Chart framework, and the BarMark chart has a memory problem/bug when using it on the iPhone with iOS 16.0 Developer Beta 3.
Problem
When using the BarMark chart on the simulator with fake values, the chart load, however if we try to load the data on the iPhone, the code breaks with this error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16d153ff8).
This however does not happen when we change the chart type from BarMark to LineMark. Then all of the sudden, the chart loads on the iPhone.
Now, when the error hits, Xcode show that the memory usage is extremely high.
Working Code
High Memory usage and error
Post
Replies
Boosts
Views
Activity
I am working on a workout App where users can save their workouts to HealthKit. However, when I save the workout, it does not have an image in the Apple Fitness App overview. So my question is, how can I add this? I know that it works, because f.e. Matrix (provider of Gym Equipment) safes the Workouts with their Icon (see below).
Hi there,
When using the AxisValueLabel in Swift Charts, the moment you add centered: true, the month or day on the right disappears.
This has been a bug for over five months since I looked through other developer forums and they had the same issue.
AxisValueLabel(format: .dateTime.weekday(), centered: true) leads to the following view:
Now if we remove the centered: true, saturday will appear.
It is probably a spacing issue, but since these are modifiers provided by Apple, it should do it correctly, right?
If I am missing something and this is by desing, please enlighten me.
Best Til