Latest 1.0.2
Homepage https://github.com/byvapps/ByvModalNav
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

ByvModalNav
ByvModalNav is an UINavigationController with auto close button. It’s developed to quickly show modal views with close button.

Example

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

Requirements

Installation

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

pod "ByvModalNav"

Usage

Use as a normal UINavigationController and present it modally

let nav = ByvModalNav.init(rootViewController: controller)
self.present(nav, animated: true, completion: nil)

If onlyInRoot:Bool = true (default) the close button is added as leftBarButtonItem only in the root view controller.
To dismiss the view you must need to back to the root view on the navigation controller

If onlyInRoot:Bool = false the close button is added as rightBarButtonItem in all view controllers.
The modal navigation can be dismiss in any view controller

Handlers

Exists 3 nullable handler var

shouldDismissHandler:(() -> Bool)? allow dismiss or not. If It’s nil the view controller should be dismissed.
willDismissHandler:(() -> Void)? It’s called before the view controller is going to be dismissed
didDismissHandler:(() -> Void)? It’s called after the view controller dismissed

Author

Adrian, [email protected]

License

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

Latest podspec

{
    "name": "ByvModalNav",
    "version": "1.0.2",
    "summary": "UINavigationController with auto close button",
    "description": "With this UINavigationController It's developed to quickly show modal views with close button.nIf onlyInRoot:Bool = true (default) the close button is added as leftBarButtonItem only in the root view controller. To dismiss the view you must need to back to the root view on the navigation controllernIf onlyInRoot:Bool = false the close button is added as rightBarButtonItem in all view controllers. The modal navigation can be dismiss in any view controller",
    "homepage": "https://github.com/byvapps/ByvModalNav",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Adrian": "[email protected]"
    },
    "source": {
        "git": "https://github.com/byvapps/ByvModalNav.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "source_files": "ByvModalNav/Classes/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This