Home

Awesome

TabPageViewController

License Language Version Platform Carthage compatible CocoaPods Awesome

Description

<img src="https://raw.githubusercontent.com/wiki/EndouMari/TabPageViewController/images/demo2.gif" width="300" align="right" hspace="20">

TabPageViewController is paging view controller and scroll tab view.

Screenshot

Infinity Mode

<img src="https://raw.githubusercontent.com/wiki/EndouMari/TabPageViewController/images/ScreenShot2.png" height="300">

Limited Mode

<img src="https://raw.githubusercontent.com/wiki/EndouMari/TabPageViewController/images/ScreenShot1.png" height="300"> <br clear="right">

Customization

Use TabPageOption

fontSize: CGFloat

currentColor: UIColor

defaultColor: UIColor

tabHeight: CGFloat

tabMargin: CGFloat

tabBackgroundColor: UIColor

currentBarHeight: CGFloat

pageBackgoundColor: UIColor

isTranslucent: Bool

hidesTabBarOnSwipe: Bool

Usage

import TabPageViewController to use TabPageViewController in your file.

Example

let tabPageViewController = TabPageViewController.create()
let vc1 = UIViewController()
let vc2 = UIViewController()

tabPageViewController.tabItems = [(vc1, "First"), (vc2, "Second")]

TabPageOption.currentColor = UIColor.redColor()

Infinity Mode

let tabPageViewController = TabPageViewController.create()
tabPageViewController.isInfinity = true

Requirements

iOS13+

Installation

Using CocoaPods

use_frameworks!
pod "TabPageViewController"

Using Carthage

github "EndouMari/TabPageViewController"

Manually

Copy all the files in Pod/Classes directory into your project.

Author

EndouMari

License

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