Latest 1.0.1
Homepage https://github.com/kwosu87/TabNavigatable
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

Swift
CocoaPods
Build Status
Codecov

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.

Latest podspec

{
    "name": "TabNavigatable",
    "version": "1.0.1",
    "summary": "A useful protocol and its extension when you make custom TabBarViewController.",
    "homepage": "https://github.com/kwosu87/TabNavigatable",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Wooseong Kim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kwosu87/TabNavigatable.git",
        "tag": "1.0.1"
    },
    "source_files": "Sources/*.swift",
    "frameworks": "UIKit",
    "platforms": {
        "ios": "9.0"
    },
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This