A subclass on UITabbar that provides allows you to customize the shape of UITabbar with a raised center button and curved tabbar layer.
MIT License
A subclass on UITabbar that provides allows you to customize a shape of UITabbar with raised center button. You can change appearance of tabbar according to your needs.
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 10.0+ Xcode 10.0+ Swift 4.2+
STTabbar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'STTabbar'
class CustomTabViewController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
if let myTabbar = tabBar as? STTabbar {
myTabbar.centerButtonActionHandler = {
print("Center Button Tapped")
}
}
}
}
11Shraddha, [email protected]
STTabbar is available under the MIT license. See the LICENSE file for more info.