Contents

willResignActiveNotification

A message indicating that the system is about to deactivate the watchOS app.

Declaration

@MainActor @preconcurrency static let willResignActiveNotification: NSNotification.Name

Discussion

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.

See Also

Observing messages from the notification center