Custom UINavigationBar with Google Material style for iOS
$ 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
MaterialNavbar is available through CocoaPods. To install it, simply add the following line to your Podfile:
Just drag the
MaterialNavbar.swift files into your project.
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()]
To use a theme:
Inspired by: RRNavigationBar
If this project help you reduce time to develop or you loved this project, you can give me a cup of coffee :)
MaterialNavbar is available under the MIT license. See the LICENSE file for more info.