/WSTabBarController

A custom TabBarController with publish button written in Swift.

Primary LanguageSwiftMIT LicenseMIT

#WSTabBarController

License MIT  [CocoaPods](http://cocoapods.org/?q= WSTabBarController)  [CocoaPods](http://cocoapods.org/?q= WSTabBarController)  Support 

A custom TabBarController with publish button written in Swift.

screenShot

Two tabs

screenShot2

Three tabs

screenShot3

Requirements

  • iOS 8.0+
  • Swift 2.2

Installation

pod "WSTabBarController"

Usage

import WSTabBarController

tabbarController = WSTabBarController(publishButtonConfig: {b in

            	//set your publish button like size,image,etc.
            }, publishButtonClick: { b in 
            
            	print("publish button clicked")
            })

Then use it just like a UITabBarController.

Custom publish button index

screenShot4

maintabbarController = WSTabBarController(publishButtonConfig: {b in

            	//set your publish button like size,image,etc.
            }, publishButtonClick: { b in 
            	print("publish button clicked")
            }, publishButtonIndex: 0)

For the usage, please refer to Sample Project.

Enjoy! :)

Author

Chisj, chisj2012@gmail.com

License

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