To run the example project, clone the repo, and run pod install
from the Example directory first.
ScrollableTabs is available through both CocoaPods and Carthage.
To integrate it into your project using CocoaPods, specify it in your Podfile:
pod "ScrollableTabs"
Specify it in your Cartfile:
github "kumapo/ScrollableTabs"
import ScrollableTabs
class ViewController: UIViewController, ScrollableTabBarController {
//Protocol Methods
@IBOutlet weak var scrollBar: ScrollableTabBar!
weak var delegate: ScrollableTabBarControllerDelegate?
var isTransitioningFromViewController: Bool = false
override func viewDidLoad() {
super.viewDidLoad()
// Initialize childViewController1 and childViewController2
// ..
setViewControllers([childViewController1, childViewController2], animated: false)
selectedViewController = childViewController1
class ChildViewController: UIViewController, ScrollableTabBarContentableController {
lazy var item: UIBarButtonItem = {
// Initialize UIBarButtonItem
// ..
}()
kumapo, kumapo@users.noreply.github.com
ScrollableTabs is available under the MIT license. See the LICENSE file for more info.