Awesome Open Source
Awesome Open Source

MaterialNavbar

Custom UINavigationBar with Google Material style for iOS

Build Status Version License Platform

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. To install it, simply add the following line to your Podfile:

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

License

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


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Swift (94,807
Ios (19,587
Animation (5,229
Material Ui (3,625
Material Design (3,508
Google (3,315
Xcode (2,394
Cocoapods (1,982
Material (1,579
Swift4 (1,452
Ios Swift (1,159
Swift Package Manager (736
Swift Library (412
Pod (393
Swift Framework (220
Navbar (119
Swift Language (107
Podfile (42
Related Projects