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
UITabBarController
UITabBar
animationType
property!animationDuration
can 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
swift
compiler.Once you have your Swift package set up, adding SETabView as a dependency is as easy as adding it to the
dependencies
value 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
SETabView
into the parent view controller and any child view controllersInherit from the
SETabViewController
class in your tab view controllerSetting the view controllers and colors
Set the view controllers using
setViewControllers(_:)
method or by directly setting theviewControllers
propertyCustomise 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
SETabItemProvider
protocol. UsingseTabImage
return aUITabBarItem
for the view controller.Alternatively you can set the
tabBarItem
property for the view controllers as you would do when usingUITabBarController
Setting the selected index programmatically
Restrictions
Example
To run the example project, clone the repo, and run
pod install
from the Example directory first.Planned Improvements
UITabBarController
behavioursAuthor
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