Latest 1.0.1
Homepage https://github.com/jnblanchard/JNBTopbar
License MIT
Platforms ios 11.0
Authors

CI Status
Version
License
Platform

JNBTopbar

Requirements

iOS 11+

Installation

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

pod 'JNBTopbar'

Example

Here’s how one may show a greeting label for two and a half seconds.

JNBTopbar.shared.showWith(contentView: label,
                             contentBackgroundColor: UIColor.black,
                             cornerRadius: 6,
                             screenInsets: UIEdgeInsets(top: 0, left: -8, bottom: -16, right: -8),
                             shadowColor: UIColor.black.cgColor,
                             shadowOpacity: 0.7,
                             shadowRadius: 10,
                             borderWidth: 2.0,
                             borderColor: UIColor.white.cgColor,
                             forDuration: 2.5,
                             completion: nil)

If you do not specify a forDuration; the bar will show until hide or another call to show is made.

JNBTopbar.shared.hide { (completed) in
  guard completed else { return }
  // bar has finished animating uup
}

License

MIT license. See the LICENSE file for more info.

Author

[email protected]

Latest podspec

{
    "name": "JNBTopbar",
    "version": "1.0.1",
    "summary": "A customizable top bar.",
    "swift_version": "4.2",
    "description": "Use this controller to easily show notification like infomation to users. Show content of any kind by providing your own view.",
    "homepage": "https://github.com/jnblanchard/JNBTopbar",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jnblanchard/JNBTopbar.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "JNBTopbar/Classes/**/*"
}

Pin It on Pinterest

Share This