willEnterForegroundNotification
A message indicating that the watchOS app is about to transition from the background to the foreground.
Declaration
@MainActor @preconcurrency static let willEnterForegroundNotification: 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.