Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jnblanchard committed Feb 5, 2019
2 parents 1f0e246 + 1680c63 commit 193a05f
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
[![License](https://img.shields.io/cocoapods/l/JNBBottombar.svg?style=flat)](https://cocoapods.org/pods/JNBBottombar)
[![Platform](https://img.shields.io/cocoapods/p/JNBBottombar.svg?style=flat)](https://cocoapods.org/pods/JNBBottombar)

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.
![](https://static.wixstatic.com/media/8e69fb_e74803bfa5144e44bc429689a8d67465~mv2.gif)

## Requirements

iOS 11+

## Installation

JNBBottombar is available through [CocoaPods](https://cocoapods.org). To install
Expand All @@ -20,10 +20,35 @@ it, simply add the following line to your Podfile:
pod 'JNBBottombar'
```

## Author
## Example

jnblanchard@mac.com, jnblanchard@mac.com
Here's how one may show a greeting label for two and a half seconds.
```swift
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.
```swift
JNBBottombar.shared.hide { (completed) in
guard completed else { return }
// bar has finished animating down
}
```

## License

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

## Author

jnblanchard@mac.com

0 comments on commit 193a05f

Please sign in to comment.