JNBBottombar 1.0.1

JNBBottombar 1.0.1

Maintained by John Blanchard.



JNBBottombar

CI Status Version License Platform

Requirements

iOS 11+

Installation

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

pod 'JNBBottombar'

Example

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

JNBBottombar.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.

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

License

MIT license. See the LICENSE file for more info.

Author

[email protected]