I'm hoping that someone could point me towards some concrete steps for reducing the memory footprint of a SwiftUI app as it moves to the background.
I've read Preparing Your UI to Run in the Background; however, this is applicable to UIKit, and I'm not sure how to translate it into SwiftUI.
I'm working on an app that generates audio, and would like it to continue doing so if the user locks their phone or opens another app. My app usually works in the background, but seems to stop when I open a more demanding app in the foreground.
In simulator and device testing, I notice that my application memory remains constant as the app moves to and from the foreground (I also note that my app memory is above the 50 MB threshold recommended in WWDC20 Session 10078)
I've read Preparing Your UI to Run in the Background; however, this is applicable to UIKit, and I'm not sure how to translate it into SwiftUI.
I'm working on an app that generates audio, and would like it to continue doing so if the user locks their phone or opens another app. My app usually works in the background, but seems to stop when I open a more demanding app in the foreground.
In simulator and device testing, I notice that my application memory remains constant as the app moves to and from the foreground (I also note that my app memory is above the 50 MB threshold recommended in WWDC20 Session 10078)