Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to set this top tab bar in bottom tabbar #84

Open
kishanbarmawala opened this issue Nov 26, 2019 · 5 comments
Open

I want to set this top tab bar in bottom tabbar #84

kishanbarmawala opened this issue Nov 26, 2019 · 5 comments

Comments

@kishanbarmawala
Copy link

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

@sadanand-lowanshi
Copy link

@kishanbarmawala have you got answer ???

@JovialDeveloper
Copy link

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

@sadanand-lowanshi
Copy link

@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
}
}

@ismaiI1
Copy link

ismaiI1 commented Feb 24, 2020

@sidlowanshi what is highlighterShadowView ?

@rutim7
Copy link

rutim7 commented Feb 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants