100 Days of SwiftUI
2026-08-09
Project 17, part 2
monitoring notifications using Apple’s Combine framework
Triggering events repeatedly using a timer
timers can become publishers, which are things that announce when their value changes
So if your timer publishes every second, then your receiver onReceive() can run something every second until the timer is stopped.
You have to go the “upstream publisher” in order to cancel the connection (if it is an autoconnect)
No guarantee of precise timing
How to be notified when your SwiftUI app moves to the background
@Environment(\.scenePhase)
3 scene phases we need to consider — .active, .inactive, .background
Supporting specific accessibility needs with SwiftUI
Using more @Environment variables to see if the user has certain accessibility

