Latest 0.1.7
Homepage https://github.com/simformsolutions/SSCustomTabMenu
License MIT
Platforms ios 9.0
Authors

Simple customizable iOS bottom menu works like Tabbar, in Swift.

Swift Version
Build Status
License
CocoaPods Compatible
Platform
PRs Welcome

Alt text

Features

  • [x] Simple and customizable iOS Tab Menu items, in Swift.

Requirements

  • iOS 9.0+
  • Xcode 9.0

Installation

CocoaPods

You can use CocoaPods to install SSCustomTabMenu by adding it to your Podfile:

platform :ios, '9.0'
use_frameworks!
pod 'SSCustomTabMenu'

To get the full benefits import YourLibrary wherever you import UIKit

import UIKit
import SSCustomTabMenu

Manually

  1. Download and drop CustomTabMenu in your project.
  2. Congratulations!

Usage example

Into your Appdelegate

import SSCustomTabMenu

and add below two lines

let MyDelegate = UIApplication.shared.delegate as! AppDelegate
var navController:UINavigationController!

Add below code into didFinishLaunchingWithOptions

Initiate your controller

let HOME = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "PlusVC")
let KREWS = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "MusicVC")
let PROFILE = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "PlusVC")
let EVENTS = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "MusicVC")
let ARTISTS = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "PlusVC")
let FANFINDER = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "MusicVC")

Initiate TabMenuVC

let tabController = storyBoard.TabMenuStoryboard?.instantiateViewController(withIdentifier: "TabMenuVC") as! TabMenuVC

Set Menu Items with Title and image name

tabController.arrMenuItems[1] = MenuItem(viewControllerforMenu:HOME!,  imageName: "Home", menuItemTitle: "HOME")

tabController.arrMenuItems[2] = MenuItem(viewControllerforMenu:KREWS!, imageName: "Krews", menuItemTitle: "KREWS")

tabController.arrMenuItems[3] = MenuItem(viewControllerforMenu:PROFILE!, imageName: "Profile", menuItemTitle: "PROFILE")

tabController.arrMenuItems[4] = MenuItem(viewControllerforMenu:EVENTS!, imageName: "Events", menuItemTitle: "EVENTS")

tabController.arrMenuItems[5] = MenuItem(viewControllerforMenu:ARTISTS!, imageName: "Artists", menuItemTitle: "ARTISTS")

tabController.arrMenuItems[6] = MenuItem(viewControllerforMenu:FANFINDER!, imageName: "FF", menuItemTitle: "FAN FINDER")

Add Center and Right TabBarItem

tabController.centerTab = PROFILE
tabController.RightTab = ARTISTS

Add tabController as rootViewController

MyDelegate.window!.rootViewController = tabController

Contribute

We would love you for the contribution to SSCustomTabMenu, check the LICENSE file for more info.

Meta

Distributed under the MIT license. See LICENSE for more information.

https://github.com/simformsolutions/SSCustomTabMenu

Latest podspec

{
    "name": "SSCustomTabMenu",
    "version": "0.1.7",
    "summary": "Custom tab menu controller for iOS.",
    "description": "This CustomTabMenu will add custom menu at bottom!",
    "homepage": "https://github.com/simformsolutions/SSCustomTabMenu",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "simformsolutions": "[email protected]"
    },
    "source": {
        "git": "https://github.com/simformsolutions/SSCustomTabMenu.git",
        "tag": "0.1.7"
    },
    "platforms": {
        "ios": "9.0"
    },
    "subspecs": [
        {
            "name": "CustomTabMenu",
            "subspecs": [
                {
                    "name": "Helper",
                    "source_files": "SSCustomTabMenu/CustomTabMenu/Helper/*.swift"
                },
                {
                    "name": "SSTabStoryBoard",
                    "resource_bundles": {
                        "SSCustomTabMenu": [
                            "SSCustomTabMenu/CustomTabMenu/SSTabStoryBoard/*.storyboard"
                        ]
                    }
                },
                {
                    "name": "image",
                    "source_files": "SSCustomTabMenu/CustomTabMenu/image/*.png"
                }
            ]
        }
    ]
}

Pin It on Pinterest

Share This