parkgwangbeom / transitionabletab Goto Github PK
View Code? Open in Web Editor NEWTransitionableTab makes it easy to animate when switching between tab.
License: MIT License
TransitionableTab makes it easy to animate when switching between tab.
License: MIT License
how can be used when the TabBarController created programmatically?
Hi, I have three ViewControllers and their color of navigationBar is different.
So change the tab by TransitionableTab, the color of navigationBar can't change smoothly.
How to deal with that problem, Hope to get your help.
Use the code:
import UIKit
import TransitionableTab
class TabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
self.delegate = self
}
}
extension TabBarController: TransitionableTab {
func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
return animateTransition(tabBarController, shouldSelect: viewController)
}
}
Unfortunately, there is no transition animation between the controllers
works badly in dark mode
the images are missing from the example project
Hi,
I've noticed that your framework isn't working when programmatically selecting an index.
I'd like to have a function to select an index and animating the transition.
EDIT:
Temporary fixed with:
func setSelectedIndex(index: Int) {
guard let viewControllers = self.viewControllers else { return }
_ = self.tabBarController(self, shouldSelect: viewControllers[index])
self.selectedIndex = index
}
Hi,
Love the library - appreciate your work on this.
I discovered when you're using a VC like a UICollectionViewController that fills the full screen and you use a UINavigationController, you get a flash or flicker from under the status bar during the transition. This happens with light or dark status bars. Is there a way to eliminate this short of redoing the view?
Here's an example - look at the status bar during the transitions.
Thanks again for the library!
The animation is really nice.
Is there a way to pop back to root view controller instead of animation, when user taps on same tab icon while user have already navigated to inside view on tab?
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.