Swiftpack.co - npvisual/AppLifecycleMiddleware as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by npvisual.
npvisual/AppLifecycleMiddleware 0.1.0
Middleware that reacts to an Application's lifecycle
⭐️ 1
🕓 6 days ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/npvisual/AppLifecycleMiddleware.git", from: "0.1.0")


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 :

Future enhancements

Looking at supporting those additional notifications :


Stars: 1
Last commit: 6 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.


Release Notes

Alpha release
1 year ago

Basic lifecycle functionality like entering background / foreground and becoming active / inactive.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics