Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bellapplab/gradientnavigationbar
iOS navigation bar with a gradient background.
https://github.com/bellapplab/gradientnavigationbar
Last synced: about 2 months ago
JSON representation
iOS navigation bar with a gradient background.
- Host: GitHub
- URL: https://github.com/bellapplab/gradientnavigationbar
- Owner: BellAppLab
- License: mit
- Created: 2016-08-11T16:23:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-12T13:38:34.000Z (over 8 years ago)
- Last Synced: 2024-10-08T07:39:40.601Z (3 months ago)
- Language: Shell
- Size: 94.7 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GradientNavigationBar
[![CI Status](http://img.shields.io/travis/Bell App Lab/GradientNavigationBar.svg?style=flat)](https://travis-ci.org/Bell App Lab/GradientNavigationBar)
[![Version](https://img.shields.io/cocoapods/v/GradientNavigationBar.svg?style=flat)](http://cocoapods.org/pods/GradientNavigationBar)
[![License](https://img.shields.io/cocoapods/l/GradientNavigationBar.svg?style=flat)](http://cocoapods.org/pods/GradientNavigationBar)
[![Platform](https://img.shields.io/cocoapods/p/GradientNavigationBar.svg?style=flat)](http://cocoapods.org/pods/GradientNavigationBar)iOS navigation bar with a gradient background. Inspired by: [https://cocoapods.org/pods/CRGradientNavigationBar](https://cocoapods.org/pods/CRGradientNavigationBar)
![Gradient Navigation Bar][1]
## How to use
Configure the Gradient Navigation Bar's appearence:
```
GradientNavigationBar.appearance().colors = [UIColor.brownColor(), UIColor.blueColor()]
GradientNavigationBar.appearance().startPoint = CGPointZero
GradientNavigationBar.appearance().endPoint = CGPoint(x: 1, y: 1)
```Instantiate your Navigation Controller with the `GradientNavigationBar` class:
```
let navController = UINavigationController(navigationBarClass: GradientNavigationBar.classForCoder(), toolbarClass: nil)
navController.viewControllers = [UIStoryboard(name: "Main", bundle: nil).instantiateInitialViewController()!]
```Enjoy!
### Note
Interface builder support was supposed to be working, but isn't... We'll get there soon though. :)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
iOS 8.0+
## Installation
GradientNavigationBar is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "GradientNavigationBar"
```## Author
Bell App Lab, [email protected]
## License
GradientNavigationBar is available under the MIT license. See the LICENSE file for more info.
[1]: https://github.com/BellAppLab/GradientNavigationBar/blob/master/screenshot.png?raw=true