hemangshah / hhtabbarview Goto Github PK
View Code? Open in Web Editor NEWA lightweight customized tabbar view. ๐
License: MIT License
A lightweight customized tabbar view. ๐
License: MIT License
For example create a view/view controller with table with a lot of items and try to scroll it to the bottom - the last cell is hidden by tab bar
Tab 1 โ Navigation Controller โฆ View Controller 1 โ View Controller 2 โ View Controller 3
So we're in View Controller 3 and by tapping on the same tab (Tab 1) again, I will now take back to View Controller 1 (the first view-controller in navigation controller hierarchy).
To achieve this, I've made a slight change in on tab tapped closure block:
hhTabBarView.onTabTapped = { (tabIndex, isSameTab, controller) in
if isSameTab {
if let navcon = controller as? UINavigationController {
navcon.popToRootViewController(animated: true)
} else if let vc = controller as? UIViewController {
vc.navigationController?.popToRootViewController(animated: true)
}
}
print("Selected Tab Index:\(tabIndex)")
}
With this, there'll be a possible highlight issue will occurs as part of this change in 2.3.0, to fix this:
I am suggesting this solution: Integrate this functions in View Controller 1 (and all other where you will have similar navigation flow).
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// This will be helpful in locking the current tab if we're already in the first view-controller in navigation flow.
HHTabBarView.shared.lockCurrentTab()
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
// This will be helpful to unlock the locked tab when we're going forward from the first view-controller in navigation flow.
HHTabBarView.shared.unlockAllTabs()
}
P.S. Thanks Nishan for coming up with this issue. ๐๐ผ
HI Hemang,
After changing the tabBarViewPosition to bottom, if you tap on any tab or on the screen the first tab will be selected.
Regards,
Dipak
Here i added 6 tab, but only 5 tabs are works and other tab's tab-button appears but doesn't work.
Someone had solution for this please help., Thanks in advance
Originally posted by @chiragpurohit71085 in #8 (comment)
Good day Sir @hemangshah ,
I am a graphics designer and i want to contribute on your project by designing a logo for it as a gift for free if you will permit me. I have noticed you don't have logo yet. Ill wait for your approval first before I start.
Thanks and best regards!
-Tobaloidee
tab bar push down when toggle in call status bar
Done.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.