Skip to content

Commit

Permalink
path updated
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeeh-hassan committed Dec 5, 2021
2 parents b61f537 + cf3436c commit f929c04
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# WHTabbar

A very simple solution to implement center button in your native UITabbar.

![](https://github.com/wajeeh-hassan/WHTabbar/blob/master/Media/tabbar.png)


[![CI Status](https://img.shields.io/travis/wajeehulhassan/WHTabbar.svg?style=flat)](https://travis-ci.org/wajeehulhassan/WHTabbar)
[![Version](https://img.shields.io/cocoapods/v/WHTabbar.svg?style=flat)](https://cocoapods.org/pods/WHTabbar)
[![License](https://img.shields.io/cocoapods/l/WHTabbar.svg?style=flat)](https://cocoapods.org/pods/WHTabbar)
Expand All @@ -20,6 +25,57 @@ it, simply add the following line to your Podfile:
pod 'WHTabbar'
```


## StoryBoard
Create a class like bellow and give the class to your Tabbar Controller in the storyboard


## Swift Class
```swift
import UIKit
import WHTabbar

class mTbbarVc: WHTabbarController {

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.

}


override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()

centerButtonSize = 60.0
centerButtonBackroundColor = .clear
centerButtonBorderColor = #colorLiteral(red: 0.3411764801, green: 0.6235294342, blue: 0.1686274558, alpha: 1)
centerButtonBorderWidth = 4
centerButtonImageSize = 30
centerButtonImage = UIImage(named: "ic_wicket")



// vPosition +ev value will move button Up
// vPosition -ev value will move button Down
setupCenetrButton(vPosition: 0) {
print("center button clicked")

// you can navigate to some view controler from here

// or you can enable the babbar selected item jsut like
// self.tabBarController?.selectedIndex = 1
}


}
}


```


## Author

wajeehulhassan, wajeeh661@gmail.com
Expand Down

0 comments on commit f929c04

Please sign in to comment.