Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
AppLifecycleMiddleware
This is a SwiftRex Middleware that specializes in transforming application lifecycle notification to Redux actions.
The original code was pulled from @luizmb's code and extracted to avoid copying it over and over. In addition the code was refactored to allow to mock some of the notifications provided by the NotificationCenter
(via dependency injection).
Current features
We currently support the following notifications :
didBecomeActiveNotification
willResignActiveNotification
didEnterBackgroundNotification
willEnterForegroundNotification
Future enhancements
Looking at supporting those additional notifications :
Github
link |
Stars: 1 |
You may find interesting
Dependencies
Releases
Alpha release - 2020-10-09T16:23:14
Basic lifecycle functionality like entering background / foreground and becoming active / inactive.