Latest 1.1.0
Homepage https://github.com/innocarpe/TabNavigable
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

Swift
CocoaPods
Build Status
Codecov

Example

class CustomTabBarViewController: UIViewController, TabNavigable {
  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

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

pod "TabNavigable"

Contribution

For your convenience, execute the line below to generate xcodeproj.

$ swift package generate-xcodeproj

Author

Wooseong Kim, [email protected]

License

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

Latest podspec

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

Pin It on Pinterest

Share This