Yalantis/ColorMatchTabs

I want to set this top tab bar in bottom tabbar

kishanbarmawala opened this issue · 5 comments

Report

⚠️ I want to set this top tab bar in bottom tabbar

Please Help me out to build setup as I requires

Screenshot 2019-11-26 at 16 27 41
Screenshot 2019-11-26 at 16 28 25
Screenshot 2019-11-26 at 16 27 49

@kishanbarmawala have you got answer ???

@kishanbarmawala I also need to do this, Please help me

@JovialDeveloper

private extension MenuView {

func layoutNavigationBar() {
navigationBar.translatesAutoresizingMaskIntoConstraints = false
navigationBar.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 10).isActive = true
navigationBar.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -10).isActive = true
navigationBar.topAnchor.constraint(equalTo: topAnchor).isActive = false
navigationBar.heightAnchor.constraint(equalToConstant: 50).isActive = true
navigationBar.bottomAnchor.constraint(equalTo: bottomAnchor, constant: safeAreaInsets.bottom - 20).isActive = true

highlighterShadowView.translatesAutoresizingMaskIntoConstraints = false
highlighterShadowView.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 0).isActive = true
highlighterShadowView.trailingAnchor.constraint(equalTo: trailingAnchor, constant: 0).isActive = true
highlighterShadowView.topAnchor.constraint(equalTo: topAnchor).isActive = false
highlighterShadowView.heightAnchor.constraint(equalToConstant: safeAreaInsets.bottom + 80).isActive = true
highlighterShadowView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: 0).isActive = true

}

func layoutTabs() {
tabs.translatesAutoresizingMaskIntoConstraints = false
tabs.leadingAnchor.constraint(equalTo: navigationBar.leadingAnchor).isActive = true
tabs.topAnchor.constraint(equalTo: navigationBar.topAnchor).isActive = true
tabs.trailingAnchor.constraint(equalTo: navigationBar.trailingAnchor).isActive = true
tabs.bottomAnchor.constraint(equalTo: navigationBar.bottomAnchor, constant: -6).isActive = true
tabs.bottomAnchor.constraint(equalTo: navigationBar.bottomAnchor).isActive = true
}

func layoutScrollMenu() {
scrollMenu.translatesAutoresizingMaskIntoConstraints = false
scrollMenu.leadingAnchor.constraint(equalTo: leadingAnchor).isActive = true
scrollMenu.topAnchor.constraint(equalTo: topAnchor, constant: 0).isActive = true
scrollMenu.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true
scrollMenu.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
}

func layoutShadowView() {
shadowView.translatesAutoresizingMaskIntoConstraints = true
shadowView.leadingAnchor.constraint(equalTo: leadingAnchor).isActive = true
shadowView.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true
shadowView.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true
shadowView.heightAnchor.constraint(equalToConstant: 80).isActive = true
shadowView.topAnchor.constraint(equalTo: topAnchor).isActive = true
}
}

@sidlowanshi what is highlighterShadowView ?

@sidlowanshi what is highlighterShadowView ?
Hi. I think this is highlighterShadowView
DB87BC9B-FA62-4BA5-83FF-A941082AA95A