Skip to content

A lightweight and pure Swift implemented library for customizable navigation controller.

License

Notifications You must be signed in to change notification settings

spirit-jsb/SBNavigationController

Repository files navigation

SBNavigationController

视图结构

SBNavigationController
   ┌─SBContainerViewController
   │    ──SBContainerNavigationController
   │         ──firstViewController
   │
   └─SBContainerViewController
        ──SBContainerNavigationController
             ──secondViewController

API

Property

  • navigationBarClass
  • sb.disablesInteractivePop
  • sb.navigationController
  • sb.navigationController.useSystemBackBarButtonItem
  • sb.navigationController.useRootNavigationBarAttributes
  • sb.navigationController.actualTopViewController
  • sb.navigationController.actualVisibleViewController
  • sb.navigationController.actualViewControllers

Method

  • init(noWrappingRootViewController:)

已知问题

  • iOS 14.0 及以上版本,调用 popToRootViewController(animated:) 方法返回跟视图控制器会意外出现 Back 按钮。

限制条件

  • iOS 11.0+
  • Swift 5.0+

安装

Cocoapods

pod 'SBNavigationController', '~> 1.0'

Swift Package Manager

https://github.com/spirit-jsb/SBNavigationController.git

作者

spirit-jsb, sibo_jian_29903549@163.com

许可文件

SBNavigationController 可在 MIT 许可下使用,更多详情请参阅许可文件

About

A lightweight and pure Swift implemented library for customizable navigation controller.

Resources

License

Stars

Watchers

Forks

Packages

No packages published