Automatically displays a 'No Internet Connection' bar in iOS apps when connectivity is lost, with support for hidden status bars and the notch.
StatusBarOverlay is an iOS library that automatically displays a 'No Internet Connection' bar at the top of the screen when an app loses connectivity. It solves the problem of informing users about network status without requiring manual checks or custom UI implementations, and it handles modern iOS interface elements like the notch and hidden status bars seamlessly.
iOS developers building apps that require clear network status indicators, especially those with full-screen interfaces or apps that hide the status bar. It's ideal for developers who want a simple, automatic solution for connectivity feedback.
Developers choose StatusBarOverlay because it provides a zero-configuration solution for network status alerts with automatic detection, notch support, and minimal code integration. Its ability to work with hidden status bars and offer customization makes it a robust alternative to building similar functionality from scratch.
StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It supports apps which hide the status bar and The Notch
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Monitors network reachability and automatically shows/hides the overlay when connection is lost and regained, requiring minimal code as highlighted in the features.
Fully supports iPhone X and newer devices with the notch, and works correctly in apps that hide the status bar permanently, addressing modern iOS interface challenges.
Allows manual triggering with custom text for debug or demo modes, and supports dropdown messages with click handlers for non-intrusive alerts, per the README.
Setup involves just a few lines of code in AppDelegate and ViewController overrides, making it quick to implement for automatic functionality.
The README admits that on the simulator, the hiding event sometimes isn't fired, which can hinder development and testing consistency.
Requires the Reachability library for connectivity events, adding an external dependency that needs to be managed and updated.
Necessitates overriding status bar properties in a common UIViewController subclass, which can be cumbersome for apps without such a structure or with complex view hierarchies.