Navigation-Toolbar 1.0.0

Navigation-Toolbar 1.0.0

Maintained by Igor Kolpachkov, Adaptive Controller, Artem.P, Alex Kalinkin.



  • By
  • Juri Vasylenko

header

navigation-toolbar

Twitter CocoaPods CocoaPods Carthage compatible Travis codebeat badge Donate

Check this library on other platforms:

Looking for developers for your project?
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.


The iPhone mockup available here.

Requirements

  • iOS 10.0+
  • Xcode 9

Installation

Just add the Source folder to your project.

or use CocoaPods with Podfile:

pod 'navigation-toolbar'

or Carthage users can simply add to their Cartfile:

github "Ramotion/navigation-toolbar"

Usage

Storyboard

  1. Create a new UIView inheriting from NavigationView

  2. Create ScreenObject for every screen:

class ViewController: UIViewController {

  private var navigationView: NavigationView?

  override func viewDidLoad() {
    super.viewDidLoad()

    navigationView = NavigationView.init(frame: view.bounds,
                                    middleView: MiddleView(),
                                       screens: [
                                                 ScreenObject(title: "MUSIC",
                                                         startColor: .red,
                                                           endColor: .blue,
                                                              image: UIImage(named : "image1")!,
                                                         controller: YourFirstViewController()),
                                                         
                                                 ScreenObject(title: "EDUCATION",
                                                         startColor: .black,
                                                           endColor: .white,
                                                              image: UIImage(named : "image2")!,
                                                         controller: YourSecondViewController()),
                                                ],
                               backgroundImage: #imageLiteral(resourceName: "background"))
                               
    navigationView?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    view.addSubview(navigationView!)
  }
  
}

This library is a part of a selection of our best UI open-source projects.

License

navigation-toolbar is released under the MIT license. See LICENSE for details.


Get the Showroom App for iOS to give it a try

Try this UI component and more like this in our iOS app. Contact us if interested.



Follow us for the latest updates