Latest 0.2.0
License MIT
Platforms ios 8.0, requires ARC

Based on this blog post:


Install CocoaPods using the following command.

$ gem install cocoapods

Add the following to your Podfile.

source ''
platform :ios, '8.0'

pod 'SwiftRaisedTab', '~> 0.2.0'


Subclass RaisedTabBarController and implement the following in viewWillAppear and onRaisedButton.

To link to storyboard, drag a new TabBarController into the storyboard and change Custom Class to your RaisedTabBarController subclass.

import UIKit
import SwiftRaisedTab

class ViewController: RaisedTabBarController {

    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.

    override func didReceiveMemoryWarning() {
        // Dispose of any resources that can be recreated.

    override func viewWillAppear(animated: Bool) {

        // Insert empty tab item at center index. In this case we have 5 tabs.
        self.insertEmptyTabItem("", atIndex: 2)

        // Raise the center button with image
        let img = UIImage(named: "icon_camera")
        self.addRaisedButton(img, highlightImage: nil)

    // Handler for raised button
    override func onRaisedButton(sender: UIButton!) {

        println("Raised button tapped")


Latest podspec

    "name": "SwiftRaisedTab",
    "version": "0.2.0",
    "summary": "SwiftRaisedTab recreates raised center tab item seen in many social networking apps.",
    "description": "SwiftRaisedTab is a simple library written in Swift that recreates raised center tab item seen in many social networking apps.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Punnawut Khowkittipaiboon": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.2.0"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "source_files": "SwiftRaisedTab/*.{m,h,swift}",
    "requires_arc": true

Pin It on Pinterest

Share This