Latest 1.1.1
License MIT
Platforms ios 11.0

CI Status

HBStatusBarNotification is an extremely lightweight solution for quickly dispatching status bar overlay notifications anywhere in your iOS application using one line of code. No additional setup or configuration is required.


Using HBStatusBarNotification is as simple as:

HBStatusBarNotification(message: "Internet Connection Lost", backgroundColor:

Optionally, you can customize any combination of the other appearances / behaviors:

let notification = HBStatusBarNotification(message: "Internet Connection Lost", 
                        statusBarStyle: .lightContent, 
                        duration: 6.0, 
                        font: UIFont(name: ".SFUIDisplay-Heavy", size: 10)!, 
                        notificationHeight: 40)

The notification will attempt to size down longer strings if they would not fit the width of the screen with the specified font size.


To run the example project, clone the repo, and run pod install from the Example directory first.


HBStatusBarNotification is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "HBStatusBarNotification"


havenbarnes, [email protected]


HBStatusBarNotification is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "HBStatusBarNotification",
    "version": "1.1.1",
    "summary": "An extremely lightweight solution to dispatching status bar notifications from anywhere in your iOS application.",
    "description": "HBStatusBarNotification provides a simple one-liner for dispatching a text-based notification that will overlay the status bar for a short duration. It offers a range of customization options so that you can make the notification appear however you would like it to.nn    I made this because it's something a lot of iOS developers want in their application, but I found a lot of the existing options require more code and offer less customization. I wanted a solution that looked like it came from the same developer and wasn't obviously a library that I had dragged into my project.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "havenbarnes": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.1"
    "platforms": {
        "ios": "11.0"
    "source_files": "HBStatusBarNotification/Classes/**/*"

Pin It on Pinterest

Share This