TabNavigatable 1.0.1

TabNavigatable 1.0.1

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布日期最后发布2017年6月
SwiftSwift 版本3.1
SPM支持 SPM

Wooseong Kim 维护。



  • 作者:
  • Wooseong Kim

示例

class CustomTabBarViewController: UIViewController, TabNavigatable {
  var containerView: UIView!
  var viewControllers: [UIViewController]! = []
  
  override func viewDidLoad() {
    super.viewDidLoad()
    initViewControllers()
  }
  
  private func initViewControllers() {
    addViewController()
    addViewController()
    addViewController()
    
    changeActiveViewController(index: 0)
  }
  
  private func addViewController() {
    let viewController = YourTabViewController()
    viewControllers.append(viewController)
  }
  
  func tabButtonDidTap(index: Int) {
    changeActiveViewController(index: index)
  }
}

安装

TabNavigatable 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中

pod "TabNavigatable"

作者

Wooseong Kim,[email protected]

许可证

TabNavigatable 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。