Home

Awesome

SSCustomTabMenu

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

Swift Version Build Status License CocoaPods Compatible Platform PRs Welcome

Alt text

Features

Requirements

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 homeVC        = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "HomeVC")
let musicVC       = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "MusicVC")
let profileVC     = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "ProfileVC")
let eventsVC      = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "EventsVC")
let artistsVC     = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "ArtistsVC")
let fanFinderVC   = storyBoard.MainStoryboard?.instantiateViewController(withIdentifier: "FanFinderVC")

Initiate TabMenuVC

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

Set Menu Items with Title and image name

tabController.arrMenuItems[1] = MenuItem(viewControllerforMenu:Krewes, imageName: "Home",          menuItemTitle: "HOME")
tabController.arrMenuItems[2] = MenuItem(viewControllerforMenu:Krewes, imageName: "Krews",         menuItemTitle: "KREWS")
tabController.arrMenuItems[3] = MenuItem(viewControllerforMenu:Krewes, imageName: "Profile",       menuItemTitle: "PROFILE")
tabController.arrMenuItems[4] = MenuItem(viewControllerforMenu:Krewes, imageName: "Events",        menuItemTitle: "EVENTS")
tabController.arrMenuItems[5] = MenuItem(viewControllerforMenu:Krewes, imageName: "Artists",       menuItemTitle: "ARTISTS")
tabController.arrMenuItems[6] = MenuItem(viewControllerforMenu:Krewes, imageName: "Fan Finder",    menuItemTitle: "FAN FINDER")

Add Center and Right TabBarItem

tabController.centerTab = plusVC
tabController.RightTab  = musicVC

Add tabController as rootViewController

self.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