Latest 2.0.0
Homepage https://github.com/ykyouhei/KYWheelTabController
License MIT
Platforms ios 8.0, requires ARC
Authors

Carthage compatible
Pod Version
Pod Platform
Pod License
Language

KYWheelTabController is a subclass of UITabBarController.It displays the circular menu instead of UITabBar.

sample.gif

Installation

CocoaPods

KYWheelTabController is available on CocoaPods.
Add the following to your Podfile:

pod 'KYWheelTabController'

Manually

Just add the Classes folder to your project.

Usage

It can be used in the same way as UITabBarController.

  • tabBarItem.title is not support.
  • tabBarItem.imageInsets is not support.
  • tabBarItem.badgeValue is not support.

Code

import UIKit
import KYWheelTabController

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        let vc0 = UIViewController()
        vc0.tabBarItem = UITabBarItem(
            title: nil,
            image: UIImage(named: "sample0"),
            selectedImage: UIImage(named: "sample0_selected"))

        let vc1 = UIViewController()
        vc1.tabBarItem = UITabBarItem(
            title: nil,
            image: UIImage(named: "sample1"),
            selectedImage: UIImage(named: "sample1_selected"))

        let vc2 = UIViewController()
        vc2.tabBarItem = UITabBarItem(
            title: nil,
            image: UIImage(named: "sample2"),
            selectedImage: UIImage(named: "sample2_selected"))

        let vc3 = UIViewController()
        vc3.tabBarItem = UITabBarItem(
            title: nil,
            image: UIImage(named: "sample3"),
            selectedImage: UIImage(named: "sample3_selected"))

        let wheelTabController = KYWheelTabController()
        wheelTabController.viewControllers = [vc0, vc1, vc2, vc3]

        /* Customize
         // selected boardre color.
         wheelTabController.tintColor = UIColor.redColor()
        */

        window?.rootViewController = wheelTabController

        return true
    }

Storyboard

  1. Set the KYWheelTabController to Custom Class of UITabBarController.

    sample2.gif

License

This code is distributed under the terms and conditions of the MIT license.

Latest podspec

{
    "name": "KYWheelTabController",
    "version": "2.0.0",
    "summary": "KYWheelTabController is a subclass of UITabBarController.It displays the circular menu instead of UITabBar.",
    "homepage": "https://github.com/ykyouhei/KYWheelTabController",
    "license": "MIT",
    "authors": {
        "Kyohei Yamaguchi": "[email protected]"
    },
    "social_media_url": "https://twitter.com/kyo__hei",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ykyouhei/KYWheelTabController.git",
        "tag": "2.0.0"
    },
    "source_files": "KYWheelTabController/Classes/**/*.swift",
    "resources": "KYWheelTabController/Resources/*",
    "requires_arc": true
}

Pin It on Pinterest

Share This