SABarButtonView 0.1.2

SABarButtonView 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2015
SPMSupports SPM

Maintained by Siavash Alipour.



  • By
  • Siavash

SABarButtonView

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

Usage

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

Installation

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

  • Fixed delay in toggeling views
  • Update podsepec

Version 0.1.0

  • Initial release ## Author

Siavash Alipour

License

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