CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Nov 2016 |
| SwiftSwift Version | 3.0 |
| SPMSupports SPM | ✓ |
Maintained by MacTeo.
Drop-in UITabBarController subclass that shows a sidebar with tabs based on trait collections.
SabBar aims to let you easily choose to show a sidebar with the same functionality of a UITabBar inside of your application, based on trait collections. To do so we’ve created a UITabBarController subclass called SabBarController that does most of the work. We’ve also added few options to customize the appearance of those sidebar (width, tab height, top navigation bar, header view, ecc).
UITabBar.Online documentation is available curtesy of CocoaDocs. You can also navigate it offline downloading the source code and looking inside the docs folder.
Import SabBar module into your Swift class
import SabBaror if you are writing in Objective-C
#import <SabBar/SabBar-Swift.h>Keep in mind the you have to let the project generate the Bridging Header otherwise the integration may fail.
Just replace any UITabBarController instance with a SabBarController one directly on Storyboards or programmatically.
In the Sample folder you can find a sample project with few lines of code in the AppDelegate class for a jumpstart.
Unfortunately you cannot create a subclass written on Objective-C of a Swift class, so you can use SabBar in an Objective-C project, but if you need to subclass the
SubBarControlleryou are forced to do it in Swift.
Add the SabBar Xcode project to your own. Then add the SabBar framework to the embedded binaries of your app’s target.
Just drag & drop the SabBar.swift source file from the Sources folder in your Xcode project.
Feel free to open an issue reporting a problem or requesting a new feature.
SabBar is released under the MIT license. See LICENSE for details.