yuanshuainiuniu / MSNavigationController

全局手势返回导航栏

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSNavigationController

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod 'MSNavigationController'

如何使用

跟系统导航栏一样,可在vc中控制导航栏

extension UIViewController {

    ///隐藏导航栏线
    @objc public var ms_hiddenNavigationBarLine: Bool

    ///设置手势返回识别距离屏幕最小距离,默认全屏
    @objc public var ms_interactivePopMaxAllowedInitialDistanceToLeftEdge: CGFloat

    ///禁用手势返回
    @objc public var ms_interactivePopDisabled: Bool

    ///禁用全屏手势返回
    @objc public var ms_disableFullscreenPopGR: Bool
    ///隐藏导航栏
    @objc public var ms_navigationBarHidden: Bool
}

Author

717999274@qq.com, Marshal

License

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

About

全局手势返回导航栏

License:MIT License


Languages

Language:Swift 96.4%Language:Ruby 3.6%