To run the example project, clone the repo, and run pod install
from the Example directory first.
AGSwipeableTabBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AGSwipeableTabBar'
- heightTabViewPerportional :- Set the height of tab view with repect to your view.
- tabBottomBarHeight: - Set the height of Tab view bottom bar.
- numberOfitemInSection: - Pass the numer of tabs you want.
- intialSelectedTab: - Pass the index which you want pre selected.
- isShowBottomTabBar: - Set the Bool value Tab view bottom bar is shown or not.
- isTabViewEqualScreenWidth: - Set the Bool Value for Tab bar width is eqaul to AGCommonTabView or not.
let arrayTitle = ["TableView", "CollectionView", "View", "Button", "Label", "SegmentedController", "switch", "progressView", "Container", "commonView"]
@IBOutlet weak var tabView: AGCommonTabView!
override func viewDidLoad() {
super.viewDidLoad()
tabView.detailCollectionView.register(UINib.init(nibName: "TabOneCollectionViewCell", bundle: nil), forCellWithReuseIdentifier: "TabOneCollectionViewCell")
tabView.delegate = self
tabView.isShowBottomTabBar = true
tabView.tabBottomBarHeight = 2
tabView.tabBarBackgroundColor = UIColor.red.cgColor
tabView.tabBarData.buttonTitleTextArray = arrayTitle
tabView.tabBarData.tabHeader = .title // .icon
tabView.tabBarData.buttonNormalImageArray = Array.init(repeating: UIImage(named: "homeUnselectdIcon")!, count: tabView.numberOfitemInSection)
tabView.tabBarData.buttonSelectedImageArray = Array.init(repeating: UIImage(named: "HomeSlectedIcon")!, count: tabView.numberOfitemInSection)
tabView.tabBarData.buttonSelectedIconColor = UIColor.black
tabView.tabBarData.buttonNormalFontColor = UIColor.black
tabView.sepratorViewBackgroundColor = UIColor.green
tabView.tabBarData.iconTabWidth = 100
tabView.initialSelectedTab(index: 2)
}
func cellForItemForDetailView(atIndex indexPath: IndexPath) -> UICollectionViewCell
func collectionViewCurrentPage(_ currentPage: Int)
MIT License
Copyright (c) 2018 Developer Fly
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.