Prevent SwiftUI App from going to sleep op WatchOS

Viewed 225

I'm trying to record some CoreMotion data from a watch app I'm making. Every time I go to move, however, the app goes inactive after a while. Since this app is more for testing purposes, I'd like to keep it active as long as it's recording data.

I think I'm basically looking for the SwiftUI equivalent on WatchOS of UIApplication.shared.isIdleTimerDisabled = true.

0 Answers
Related