Handling pomodoro logic in background (SwiftUI/iOS)
I’m working on a Pomodoro app for educational purposes. I use Timer for UI updates and making ticks every second to update state time delta’s and using time elapsed to calculate time remaining and all of the logic. However, when I minimize the app, it gets suspended. There is no way to run such Timer or do any background processing to update state of pomodoro (and actually switching from work -> break and so forth).