Platformsios 8.0, requires ARC

CI Status

What is it?

SABarButtonView is a simple UIView subclass that creates tabBarButtons and handle the toggles between the views for you. It is easy to use since you can modify almost all the TabBar component inside the interface builder.

SABarButtonView Example


To run the example project, clone the repo, and run pod install from the Example directory first.


SABarButtonView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SABarButtonView"

How to create and use a SABarButtonView

Simply add a UIView to your UIViewController and change to class to SABarButtonView. Then you can modify the properties by tapping on Attribute inspecter.

SABarButtonView Example

For example lets say you have 3 TabBarButtons. You also need to have 3 toggle able views as well. Simply create 3 custom Views and connect them to toggleAbleViews OutletCollection of the SABarButtonView.

SABarButtonView Example

No all you need is to have an outlout for your SABarButtonView in you ViewController and set the "btnsTitles" property of the SABarButtonView.

 @IBOutlet var tabBar:SABarButtonView!
 tabBar.btnsTitles = ["View 1","View 2","View 3"]

Release Notes

Version 0.1.2

  • Add docs

Version 0.1.1

  • Fixed delay in toggeling views
  • Update podsepec

Version 0.1.0

  • Initial release


Siavash Alipour


SABarButtonView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "SABarButtonView",
    "version": "0.1.2",
    "summary": "A subclass of UIView which helps you to create toggle able views easily.",
    "description": "SABarButtonView easily lets you design and create your TabBar in Interface builder using IBDesignables. Configure your tabButtons and attached the toggle able views and thats all.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Siavash": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.2"
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "SABarButtonView": [
    "frameworks": "UIKit"

Pin It on Pinterest

Share This