Simple customizable iOS bottom menu works like Tabbar, in Swift

Overview

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 might also like...
iOS Pod for a Soft UI (Neumorphic) Button for UIKit written in Swift
iOS Pod for a Soft UI (Neumorphic) Button for UIKit written in Swift

iOS Pod for a Soft UI (Neumorphic) Button for UIKit written in Swift

Recreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift).
Recreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift).

TVButton Recreating the cool parallax icons from Apple TV as iOS UIButtons (in Swift). The effect is triggered by long pressing or dragging. Usage Imp

 RadioGroup - The missing iOS radio buttons group.
RadioGroup - The missing iOS radio buttons group.

RadioGroup The missing iOS radio buttons group. Usage let radioGroup = RadioGroup(titles: ["First Option Title", "Another Option Title", "Last"]) radi

iOS 7-style bouncy button.

SSBouncyButton SSBouncyButton is simple button UI component with iOS 7-style bouncy animation. Take A Look Try It! pod 'SSBouncyButton', '~ 1.0' Use

Flat design pressable button for iOS developers.
Flat design pressable button for iOS developers.

HTPressableButton HTPressableButton is designed for iOS developers to be able to spend time developing ideas, not building basic buttons. These stylis

Interactive and fully animated Material Design button for iOS developers.
Interactive and fully animated Material Design button for iOS developers.

WYMaterialButton Inspired by Google Material Design, written purely in Swift 3. WYMaterialButton implemented Material Design on iOS and add more dynam

Tasteful Checkbox for iOS. (Check box)
Tasteful Checkbox for iOS. (Check box)

BEMCheckBox BEMCheckBox is an open source library making it easy to create beautiful, highly customizable, animated checkboxes for iOS. Table of Conte

A high-performance button control with rounded corners for iOS.
A high-performance button control with rounded corners for iOS.

TORoundedButton TORoundedButton is an open source UI control of a standard user button. Its design consists of displaying text on top of a solid recta

Cute Animated Button written in Swift.
Cute Animated Button written in Swift.

DOFavoriteButton Cute Animated Button written in Swift. It could be just right for favorite buttons! Requirements iOS 7.0+ Swift 1.2 Installation Cart

Releases(0.1.7)
Owner
Simform Solutions
Simform Solutions
Option selector that works similar to Reactions by fb. Objective-c version

EMEmojiableBtn Usage To run the example project, clone the repo, and run pod install from the Example directory first. There's also an Swift implement

Erekle 82 Dec 20, 2022
Simple and customizable button in Swift

SwiftyButton Maintainer(s): @nickm01 @pmacro @aryamansharda Simple and customizable button in Swift. Installation Cocoapods pod 'SwiftyButton' Cartha

Scoop 542 Dec 13, 2022
An open-source library to use with SwiftUI, It allows you to create Floating menu action button.

Floating Menu Action Button Example Overview This is an open-source library to use with SwiftUI. It allows you to create Floating menu action button. Ins

ugo 3 Aug 19, 2022
Customizable and easy to use expandable button in Swift.

ExpandableButton Requirements iOS 9.0+ Installation CocoaPods: Add the following line to your Podfile: pod 'ExpandableButton' #for swift less than 4.

Dmytro Mishchenko 98 Dec 5, 2022
Customizable download button with progress and transition animations. It is based on Apple's App Store download button.

AHDownloadButton is a customizable download button similar to the download button in the latest version of Apple's App Store app (since iOS 11). It fe

Amer Hukić 465 Dec 24, 2022
This is a UI lib for iOS. Effects like shining.

WCLShineButton This is a UI lib for iOS. Effects like shining. Chinese (Simplified): 中文说明 博客介绍 CocoaPods CocoaPods is the recommended way to add WCLSh

W_C__L 1.4k Dec 31, 2022
Multiple state tap-to-toggle UIButton (like old camera flash button)

Multiple State Toggle UIButton A UIButton subclass that implements tap-to-toggle button text. (Like the camera flash and timer buttons) Usage Just cre

Yonat Sharon 83 Oct 11, 2022
Floaty is simple floating action button for iOS.

Floaty is simple floating action button for iOS. (formerly KCFloatingActionButton) Why change the name? Follow the swift naming convention. KCF

Lee Sun-Hyoup 1.5k Jan 7, 2023
TTopImageBottomLabelButton is a simple and flexible UI component fully written in Swift

TTopImageBottomLabelButton is a simple and flexible UI component fully written in Swift. TTopImageBottomLabelButton is developed to help programmers create a button with top image and bottom title quickly without having to write many lines of codes.

Nguyen Duc Thinh 2 Aug 18, 2022
Animated Social share buttons control for iOS written in Swift

SwiftShareBubbles Animated Social share buttons control for iOS written in Swift. This library is inspired AAShareBubbles. I tried AAShareBubbles with

Takeshi Fujiki 175 Jun 11, 2022