CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

TabNavigatable 1.0.1

TabNavigatable 1.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2017
SwiftSwift Version 3.1
SPMSupports SPM

Maintained by Wooseong Kim.



  • By
  • Wooseong Kim

Example

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)
  }
}

Installation

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

pod "TabNavigatable"

Author

Wooseong Kim, [email protected]

License

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