CosmicMind / CosmicMind/Material
TabBar Item Customization
- Dominant language
- Swift
- Stars
- 12k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Normally Tab Items takes equal spacing. But according my design I need to change this behavior. Tab Items should take only the space it needs. Also Is there any option to modify the radius of the line as my design has this modification.
This is what I have tried:
[let tabBar = TabBar()
tabBar.delegate = self
tabBar.dividerColor = Color.clear
tabBar.lineColor = Colors.wiseMagenta!
tabBar.lineAlignment = .bottom
tabBar.backgroundColor = Color.clear
tabBar.tabItems = buttons
tabBar.tabBarStyle = .nonScrollable
tabBar.tabBarCenteringStyle = .never
tabBar.tabItemsInterimSpace = 0
tabBar.tabBarLineStyle = .auto
tabBar.frame = CGRect.init(x: 0, y: 0, width: 200, height: 43)
let rightBarButton = UIBarButtonItem(customView: tabBar)
self.navigationItem.leftBarButtonItems = [rightBarButton]]
**My target Design:**

**Result I am getting:**

Contributor guide
Assessment
This issue has not been assessed yet.