Latest 0.1.5
Homepage https://github.com/waddo/Naviline
License MIT
Platforms ios 9.0
Authors

Naviline is useful navigation stack to create path structure in your app.

Version
License
Platform

Example

Base controller where you want to add Naviline should be NavilineController subclass.

class ViewController: NavilineController {

    var naviline: Naviline
    var navigationContentView: UIView

    init() {
        let configurator = NavilineConfigurator.defaultConfigurator()
        configurator.colors[.backgroundColor] = .red
        configurator.colors[.homeBackgroundColor] = .red
        configurator.colors[.selectedTextColor] = .blue
        configurator.colors[.textColor] = .white

        configurator.fonts[.boldFont] = UIFont.boldSystemFont(ofSize: 14.0)
        configurator.fonts[.regularFont] = UIFont.systemFont(ofSize: 14.0)

        configurator.height = 44.0

        self.naviline = Naviline(configurator: configurator)
        self.navigationContentView = UIView()

        super.init(nibName: nil, bundle: nil)
    }

    ...

}

Every content view controller should be NavilineContentController subclass.
After initialisation call setup method to set base controller for Naviline and set home content controller.

    naviline.setup(with: self, homeContentController: ContentViewController(index: naviline.size,
    title: "Controller (naviline.size)"))

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Naviline is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Naviline'

Author

Anton Rodzik

License

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

Latest podspec

{
    "name": "Naviline",
    "version": "0.1.5",
    "summary": "Naviline is a useful stack for one-screen navigation.",
    "homepage": "https://github.com/waddo/Naviline",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Anton Rodzik": "[email protected]"
    },
    "source": {
        "git": "https://github.com/waddo/Naviline.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.2",
    "source_files": "Naviline/Classes/**/*",
    "resources": "Naviline/Assets/*"
}

Pin It on Pinterest

Share This