SwiftUI: Observing Changes Using System Notifications
The Apple ecosystem leverages NotificationCenter to report changes at the system level. There are several types of notification events, such as when an app enters the background, when a user takes a screenshot on the device, or when there is a change in battery level. We can leverage these notifications to make important changes to our app.