Swiftpack.co -  Package - vikramjagad/CustomTabBarVC
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
vikramjagad/CustomTabBarVC
Library for Custom Tab Bar Controller. Custom options available according to type specified in Custom Tab Bar Params.
.package(url: "https://github.com/vikramjagad/CustomTabBarVC.git", from: "1.0.2")

CustomTabBarVC

Custom Tab Bar with options for modification.

Library for Custom Tab Bar Controller. Custom options available according to type specified in Custom Tab Bar Params.

Add as Pod

pod 'CustomTabBarVC'

Add as Swift Package Manager

https://github.com/vikramjagad/CustomTabBarVC.git

How to use?

let subVC1 = UIStoryboard(name: "Sub", bundle: .main).instantiateViewController(withIdentifier: "SubViewController") as! SubViewController
subVC1.title = "VC 1"
let subVC2 = UIStoryboard(name: "Sub", bundle: .main).instantiateViewController(withIdentifier: "SubViewController") as! SubViewController
subVC2.title = "VC 2"
let subVC3 = UIStoryboard(name: "Sub", bundle: .main).instantiateViewController(withIdentifier: "SubViewController") as! SubViewController
subVC3.title = "VC 3"
tabParam.viewControllers = [subVC1, subVC2, subVC3]
tabParam.tabData = [TabModel(title: "VC 1", img: "ic_account", selectedImg: "", badgeCount: ""),
                    TabModel(title: "VC 2", img: "ic_camera", selectedImg: "", badgeCount: ""),
                    TabModel(title: "VC 3", img: "ic_delete", selectedImg: "", badgeCount: "")]
tabParam.place = .top
tabParam.type = .title
tabParam.equalWidth = false
tabParam.showSelectionView = false
tabParam.tabColor = .white
tabParam.titleColor = .black
tabParam.imgTintColor = .black
tabParam.selectedTitleColor = .red
tabParam.selectedImgTintColor = .red
tabParam.viewMainSpacing = 4
tabParam.imgLeadingSpacing = 16
tabParam.titleLeadingTrailingSpacing = 16
tabParam.tabHeight = 40
tabParam.addShadow = true
tabParam.cornerRadius = 0
tabParam.edgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 2, right: 0)
tabParam.shadowOffset = CGSize(width: 0, height: 1)
tabParam.cornerTo = [.bottomLeft, .bottomRight]
tabParam.titleFont = .systemFont(ofSize: 16)
tabParam.badgeBgColor = .red
tabParam.badgeTextFont = .systemFont(ofSize: 12)
tabParam.badgeTextColor = .white
tabParam.selectedViewColor = .red
tabParam.badgeHeight = 20
tabParam.hideBadgeOnSelection = true
tabParam.badgePosition = .aboveImage

Simulator Screen Shot - iPhone SE (2nd generation) - 2021-03-09 at 14 52 11

Simulator Screen Shot - iPhone SE (2nd generation) - 2021-03-09 at 14 52 15

Simulator Screen Shot - iPhone SE (2nd generation) - 2021-03-09 at 14 52 24

Simulator Screen Shot - iPhone SE (2nd generation) - 2021-03-09 at 14 52 29

Simulator Screen Shot - iPhone SE (2nd generation) - 2021-03-09 at 14 52 40

Simulator Screen Shot - iPhone SE (2nd generation) - 2021-03-09 at 14 52 54

GitHub

link
Stars: 0
Last commit: 3 days ago

Release Notes

Minor Bug Fixes
3 days ago
  • Bug fix for no normal image and only display image while selected a view.
  • Bug fix for selected image not showing tintColor will now show tintColor if renderingMode inside TabBarCustomParam is put as .alwaysTemplate.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco