https://github.com/jogendra/material-navigation-bar
Custom UINavigationBar with Google Material style for iOS, with very smooth animations
https://github.com/jogendra/material-navigation-bar
animation animations cocoapods google ios ios-swift material material-design material-ui navbar pod podfile swift swift-4 swift-framework swift-language swift-library swift-package-manager swift4 xcode
Last synced: 12 months ago
JSON representation
Custom UINavigationBar with Google Material style for iOS, with very smooth animations
- Host: GitHub
- URL: https://github.com/jogendra/material-navigation-bar
- Owner: jogendra
- License: mit
- Created: 2018-11-27T08:27:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T03:39:11.000Z (about 7 years ago)
- Last Synced: 2025-03-07T10:26:39.680Z (about 1 year ago)
- Topics: animation, animations, cocoapods, google, ios, ios-swift, material, material-design, material-ui, navbar, pod, podfile, swift, swift-4, swift-framework, swift-language, swift-library, swift-package-manager, swift4, xcode
- Language: Swift
- Homepage: https://jogendra.github.io/
- Size: 485 KB
- Stars: 20
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# MaterialNavbar
Custom UINavigationBar with Google Material style for iOS

[](https://travis-ci.org/jogendra/material-navigation-bar)
[](https://cocoapods.org/pods/MaterialNavbar)
[](https://cocoapods.org/pods/MaterialNavbar)
[](https://cocoapods.org/pods/MaterialNavbar)
## Demo/Example
For demo:
```
$ pod try MaterialNavbar
```
To run the example project, clone the repo, and run `pod install` from the Example directory first.
```
$ cd Example
```
```
$ pod install
```
If you don't have CocoaPods installed, grab it with `[sudo] gem install cocoapods`.
```
$ open MaterialNavbar.xcworkspace
```
## Requirements
- iOS 10.0 or later
- Swift 4.2
- Xcode 10
## Installation
#### CocoaPods
MaterialNavbar is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'MaterialNavbar'
```
#### Manual Installation
Just drag the `MaterialNavbar.swift` files into your project.
## Usage
MaterialNavbar is a subclass of `UINavigationBar`, so you use it as usually. For init `MaterialNavbar` in a `UINavigationController` follow the example bellow:
```
var navigationController = UINavigationController(navigationBarClass: MaterialNavbar.self, toolbarClass: nil)
navigationController.viewControllers = [ViewController()]
```
#### Theme
To use a theme:
```
MaterialNavbar.changeColorNavigationBar(ThemeColor.Red)
```
Inspired by: RRNavigationBar
## Author
Jogendra Kumar
## DONATION
If this project help you reduce time to develop or you loved this project, you can give me a cup of coffee :)
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5TZAT3TL6XTD4&source=url)
## License
MaterialNavbar is available under the MIT license. See the [LICENSE](LICENSE) file for more info.