Set the view controllers using setViewControllers(_:) method or by directly setting the viewControllers property
Customise the look by calling setTabColors(backgroundColor:ballColor:tintColor:unselectedItemTintColor:barTintColor:) method or simply setting the respective colors
SETabView is available under the MIT license. See the LICENSE file for more info.
SETabView uses the complete OrderedCollections code from swift-collections
Animations
What’s New?
The API has been changed to resemble
UITabBarControllerUITabBaranimationTypeproperty!animationDurationcan no longer be changedBug fixes
A whole lot of performance optimizations have been added so that our library does not slow down your app. Hurray!
Requirements
Integration
CocoaPods
SETabView is available through CocoaPods. To install it, simply add the following line to your Podfile:
In case the latest version (2.0.0) is not the one being installed, update the pod.
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the
swiftcompiler.Once you have your Swift package set up, adding SETabView as a dependency is as easy as adding it to the
dependenciesvalue of yourPackage.swift.Directly include source files
Download and add the files in the Source folder directly into your Xcode Project. In this case you should skip
in the usage instructions.
Usage and Customization
Import
SETabViewinto the parent view controller and any child view controllersInherit from the
SETabViewControllerclass in your tab view controllerSetting the view controllers and colors
Set the view controllers using
setViewControllers(_:)method or by directly setting theviewControllerspropertyCustomise the look by calling
setTabColors(backgroundColor:ballColor:tintColor:unselectedItemTintColor:barTintColor:)method or simply setting the respective colorsProviding the image for the tab bar
The child view controllers can conform to the
SETabItemProviderprotocol. UsingseTabImagereturn aUITabBarItemfor the view controller.Alternatively you can set the
tabBarItemproperty for the view controllers as you would do when usingUITabBarControllerSetting the selected index programmatically
Restrictions
Example
To run the example project, clone the repo, and run
pod installfrom the Example directory first.Planned Improvements
UITabBarControllerbehavioursAuthor
Srivinayak Chaitanya Eshwa, eshwavin@gmail.com
License
SETabView is available under the MIT license. See the LICENSE file for more info. SETabView uses the complete OrderedCollections code from swift-collections
Acknowledgement
Animation Inspiration
Icons