Post

Replies

Boosts

Views

Activity

Comment on Memory usage unstoppably increasing when updating SwiftData Object from Timer
Similar to the podcast app, I need to keep track of how far the audio has been played. My solution right now is to start a timer that updates a swiftdata object property. This will later be an TimeInterval, but right now I am working with the SwiftData Template. Since a playback can be started from many places in the app, I need to write a function that can be accessed anywhere. None of the places I tried (extensions, global, within class) support @Query so I need to use another way.
May ’24
Comment on SwiftData @ModelActor Memory usage skyrocketing when changing properties
How I observed the memory issues: Installed app on device (Memory at around 25MB) Added 10 models (after that Memory at around 29MB) Started Timer and waited. (3min -> 70MB, 47min -> 1,05GB, 49min -> 1,07GB -> Hang detection showed hangs at around 150ms each) Stopped timer and waited for 10 minutes (Memory usage dropped to 1,06GB, went up to 1,08GB and after 10 minutes it was back at 1,06GB) [1/2]
Aug ’24
Comment on SwiftData @ModelActor Memory usage skyrocketing when changing properties
After 64 min the memory was down to 1,03GB so it seems like the system recycles the memory slowly. Phone has not been touched in the entire time and it has always been in the foreground. Even if the memory is slowly recycled that happens too late since such a simple app should not be consuming so much memory. Clearly something is not working as expected here. Thanks for the reference to the other post but that is not relevant for my app. [2/2]
Aug ’24
Comment on Disable MusicKit logs without disabling manual Logs via Logger()
The first message (Attempted to reg...) is a fault, library is "Accounts", subsystem is "com.apple.accounts" and category is "core". The second message is an error, library is iTunsCloud, subsystem is "com.apple.amp.iTunesCloud" and category is "Default". I can right click this one and choose "Hide similar items" which works but is not available for the first message. I am currently running iOS 17.6.1 (21G93) and Xcode Version 15.4 (15F31d)
Sep ’24
Comment on The bad service by App Review Team
Maybe you can elaborate what App Review gave for an explanation. Referring to Guideline 4.3.0 can be anything. Once again this is more of a rant that anything else we can help you with.
2w