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
⭐️ 2
🕓 2 years ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/npvisual/AppLifecycleMiddleware.git", from: "0.1.0")

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 :

Future enhancements

Looking at supporting those additional notifications :

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

Alpha release
3 years ago

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

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