Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T03:39:11.000Z (almost 6 years ago)
- Last Synced: 2024-09-29T22:04:04.436Z (3 months 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: 2
- 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
[![Build Status](https://travis-ci.org/jogendra/material-navigation-bar.svg?branch=master)](https://travis-ci.org/jogendra/material-navigation-bar)
[![Version](https://img.shields.io/cocoapods/v/MaterialNavbar.svg?style=flat)](https://cocoapods.org/pods/MaterialNavbar)
[![License](https://img.shields.io/cocoapods/l/MaterialNavbar.svg?style=flat)](https://cocoapods.org/pods/MaterialNavbar)
[![Platform](https://img.shields.io/cocoapods/p/MaterialNavbar.svg?style=flat)](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 :)[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](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.