Skip to content
Customisable iOS bottom menu works like Tabbar
Branch: master
Clone or download
simformsolutions Merge pull request #2 from tejas-ardeshna/master
Code clean up
merged and reviewed by tejas
Latest commit c7ae0de Jan 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SSCustomTabMenu.xcodeproj
SSCustomTabMenu - code clean up Jan 20, 2018
.swift-version
.travis.yml yml added Jan 13, 2018
LICENSE Initial commit Dec 26, 2017
README.md
SSCustomTabMenu.podspec
customTab.gif

README.md

SSCustomTabMenu

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

Swift Version Build Status License CocoaPods Compatible Platform PRs Welcome

Alt text

Features

  • 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 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

You can’t perform that action at this time.