Latest 0.1.1
Homepage https://github.com/conmulligan/TabBarPageController
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

TabBarPageController is a container view controller that manages navigation between pages of content. Each page is managed by a child view controller embedded in a UIPageViewController instance, allowing users to navigate between tabs by selecting tab bar items or swiping left and right.



Usage

Create a TabBarPageController instance and add view controllers to it:

    let tabBarController = TabBarPageController()
    tabBarController.add(viewController)

Show a specific view controller:

    tabBarController.show(viewController)

You can configure the appearance of tab bar items by changing the child view controllers’ UITabBarItem values.

Although TabBarPageController is similar to UITabBarController it is not a drop-in replacement and has a number of important differences:

  • TabBarPageController always hides the tab bar when a child navigation view controller pushes a new view controller. This is to avoid interfering with the navigation controller’s back navigation gesture.
  • Editing and the "more" navigation controller are not supported.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Requires iOS 9 or greater.

Installation

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

pod 'TabBarPageController'

You can also just copy the TabBarPageController.swift file into your project.

Author

conmulligan, [email protected]

License

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

Latest podspec

{
    "name": "TabBarPageController",
    "version": "0.1.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "A container view controller that manages paging navigation between tabs of content.",
    "homepage": "https://github.com/conmulligan/TabBarPageController",
    "authors": {
        "conmulligan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/conmulligan/TabBarPageController.git",
        "tag": "0.1.1"
    },
    "screenshots": [
        "https://raw.githubusercontent.com/conmulligan/TabBarPageController/master/Example/Screenshots/1.png",
        "https://raw.githubusercontent.com/conmulligan/TabBarPageController/master/Example/Screenshots/2.png",
        "https://raw.githubusercontent.com/conmulligan/TabBarPageController/master/Example/Screenshots/3.png"
    ],
    "social_media_url": "https://twitter.com/conmulligan",
    "swift_version": "4.1",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "TabBarPageController/Classes/**/*",
    "frameworks": "UIKit",
    "description": "A container view controller that manages navigation between tabs of content. Each tab is managed by a child view controller embedded in a UIPageViewController instance, allowing users to navigate between tabs by selecting tab bar items or swiping left and right."
}

Pin It on Pinterest

Share This