Tabman travis-ci ruby SwiftPM CocoaPods

A powerful paging view controller with indicator bar for iOS.

Tabman

Build Status Swift 3.0 [CocoaPods]() codecov GitHub release

Tabman is a powerful paging view controller with indicator bar, for iOS.

Tabman

Features

  • [x] Super easy to implement page view controller with indicator bar.
  • [x] Multiple indicator bar styles.
  • [x] Simplistic, yet highly extensive customisation.
  • [x] Full support for custom components.
  • [x] Built on a powerful and informative page view controller, Pageboy.

Installation

CocoaPods

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

pod 'Tabman'

And run pod install.

Dependencies

Example

A nice pretty example project is available to take a look at some of the features that Tabman offers. To run the example, simply clone the repo, run pod install and build the workspace.

Requirements

Tabman requires iOS 9.0 or above.

Usage

Getting Started

1) Create an instance of TabmanViewController and provide it with a PageboyViewControllerDataSource. Note: TabmanViewController conforms to and is set as the PageboyViewControllerDelegate.

class YourTabViewController: TabmanViewController, PageboyViewControllerDataSource {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.dataSource = self
    }
}

2) Implement the PageboyViewControllerDataSource and configure the bar for display.

func viewControllers(forPageboyViewController pageboyViewController: PageboyViewController) -> [UIViewController]? {
    // return array of view controllers
    let viewControllers = [viewController1, viewController2]

    // configure the bar
    self.bar.items = [TabmanBarItem(title: "Page 1"),
                      TabmanBarItem(title: "Page 2")]

    return viewControllers
}

func defaultPageIndex(forPageboyViewController pageboyViewController: PageboyViewController) -> PageboyViewController.PageIndex? {
    // use default index
    return nil
}

3) All done!

Related Repositories

salt-vim

salt-vim

Vim files for editing Salt files ...

GoldenView.Vim

GoldenView.Vim

Always have a nice view for vim split windows! ...

tabman.vim

tabman.vim

Tab management for Vim ...

MSSTabbedPageViewController

MSSTabbedPageViewController

[DEPRECATED] A container UIViewController that provides a simple to implement pa ...

vim-config

vim-config

Lean mean (Neo)Vim machine. Use with Neovim v0.1.5+ or Vim v7.4+ ...


Top Contributors

msaps soheilbm iqbalqasim OskarGroth diogowbrito leah Limon-O-O Nicejinux thevest AlexZd Vortec4800 djbe fbernardo karstengresch otymartin Patrick-Remy pietrocaselani aerialcombat moaible

Releases

-   1.10.2 zip tar
-   1.10.1 zip tar
-   1.10.0 zip tar
-   1.9.2 zip tar
-   1.9.1 zip tar
-   1.9.0 zip tar
-   1.8.2 zip tar
-   1.8.1 zip tar
-   1.8.0 zip tar
-   1.7.0 zip tar
-   1.6.0 zip tar
-   1.5.2 zip tar
-   1.5.1 zip tar
-   1.5.0 zip tar
-   1.4.0 zip tar
-   1.3.0 zip tar
-   1.2.0 zip tar
-   1.1.4 zip tar
-   1.1.3 zip tar
-   1.1.2 zip tar
-   1.1.1 zip tar
-   1.1.0 zip tar
-   1.0.8 zip tar
-   1.0.7 zip tar
-   1.0.6 zip tar
-   1.0.5 zip tar
-   1.0.4 zip tar
-   1.0.3 zip tar
-   1.0.2 zip tar
-   1.0.1 zip tar