didEnterBackgroundNotification
A message indicating that the watchOS app transitioned from the foreground to the background.
Declaration
@MainActor @preconcurrency static let didEnterBackgroundNotification: NSNotification.NameDiscussion
When creating an app that uses the SwiftUI App protocol to manage your life cycle, use the onChange(of:perform:) modifier and the scenePhase environment value to monitor life cycle changes when possible. For more information, see Building a watchOS app.