https://github.com/11shraddha/sttabbar
A subclass on UITabbar that provides allows you to customize the shape of UITabbar with a raised center button and curved tabbar layer.
https://github.com/11shraddha/sttabbar
curved-tabbar ios raised-center raisedbutton shape shaped-tabbar swift swift4 tabbar tabbarcontroller tabbaritem tabbarview tabbarviewcontroller uitabbar
Last synced: about 1 month ago
JSON representation
A subclass on UITabbar that provides allows you to customize the shape of UITabbar with a raised center button and curved tabbar layer.
- Host: GitHub
- URL: https://github.com/11shraddha/sttabbar
- Owner: 11Shraddha
- License: mit
- Created: 2020-06-19T06:39:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-19T10:06:29.000Z (almost 5 years ago)
- Last Synced: 2025-02-02T15:26:22.604Z (4 months ago)
- Topics: curved-tabbar, ios, raised-center, raisedbutton, shape, shaped-tabbar, swift, swift4, tabbar, tabbarcontroller, tabbaritem, tabbarview, tabbarviewcontroller, uitabbar
- Language: Swift
- Homepage:
- Size: 777 KB
- Stars: 60
- Watchers: 3
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# STTabbar
[](https://travis-ci.org/11Shraddha/STTabbar)
[](https://cocoapods.org/pods/STTabbar)
[](https://cocoapods.org/pods/STTabbar)
[](https://cocoapods.org/pods/STTabbar)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.

## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
iOS 10.0+
Xcode 10.0+
Swift 4.2+## Installation
STTabbar is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'STTabbar'
```## Usage
1. Setup Stoaryboard. Add UITabbarViewcontroller in the storyboard.
2. Craete custom TabbarController class using below code.```Swift
class CustomTabViewController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
if let myTabbar = tabBar as? STTabbar {
myTabbar.centerButtonActionHandler = {
print("Center Button Tapped")
}
}
}
}
```
3. Go to stoaryboard and change UITabBarController class to CustomTabViewController.
4. Also change UItabBar class to STTabbar.

## Author
11Shraddha, [email protected]
## License
STTabbar is available under the MIT license. See the LICENSE file for more info.