ezimetyusup / wormtabstrip Goto Github PK
View Code? Open in Web Editor NEWπ WormTabStrip ViewPager for iOS written in Swift, which gives continuous feedback to the user when scrolling
License: MIT License
π WormTabStrip ViewPager for iOS written in Swift, which gives continuous feedback to the user when scrolling
License: MIT License
Can we center the selected tab like Android version with attribute stl_indicatorAlwaysInCenter ?
In my case, I just have one view controller with table view and I want to reload the table view.
Is there any method to identify the tab click so that I can reload the tableview?
When I try to navigate from the tabs ViewController it can't perform push operation.
When I click on the Uitableview, the content scrolls up and the elements disappear.
WormTabStrip initializer is inaccessible due to internal protection level.
Add the public init correctly for pods, use the Libreary manual is better.
Does'nt work with orientation changes.
WormTabStrip.selectTabAt(index: 1)
Crash if try to set index 1 as default from [vc1,vc2]
how to add the storyboard view controller in a tabs ?
When CollectionView/TableView added via storyBoard TableViewCell/CollectionViewCell disappears when tap on collectionView/tableView.
Please, add the Swift Package Manager file declaration.
thanks
I'd be cool to also add Cocoapods support. I did this implementation myself last week for my library. Just follow this post and this checklist.
How to call viewWillAppear
of selected viewController
whenever tabBar
button pressed or scrollView
swiped.
By default viewWillAppear
not triggered after used this library.
@EzimetYusup Thanks for giving library! i need to populating tableview data.
func WTSviewOfTab(index: Int) -> UIView { let view:LeaveTableVC = LeaveTableVC() if index == 0 { view.view.backgroundColor = UIColor.black }
self.tableview.delegate = self
self.tableview.dataSource = self, `
Error: fatal error: unexpectedly found nil while unwrapping an Optional value
I was getting tableview.delegate = self (in leavetableVC class)
Please help me out this issue
how first load at index 1?
Please initialize Fount in WormTabStripButton also , because if you don't initialize then font and size will not reflect first time
so i use -> self.font = AppTheme.TabStripFont()
class WormTabStripButton: UILabel{
var index:Int?
var paddingToEachSide:CGFloat = 10
var tabText:NSString?{
didSet{
let textSize:CGSize = tabText!.size(withAttributes: [NSAttributedStringKey.font: font])
self.frame.size.width = textSize.width + paddingToEachSide + paddingToEachSide
self.text = String(tabText!)
}
}
//MARK: init
override init(frame: CGRect) {
super.init(frame: frame)
self.font = AppTheme.TabStripFont()
}
convenience required init(key:String) {
self.init(frame:CGRect.zero)
self.font = AppTheme.TabStripFont()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
the sub ViewController
self.navigationController == nil
How to deal withοΌ
hey
thanks for awesome library.
in my project I need to know which one of tab is selected! how can i do that?
please delete my post. problem sovled
Hi, I'm loving WormTabStrip but I ran into a problem when I add in a tableview's view.
The tableview seems to completely disappear whenever I touch it.
My tableview controller works fine when it's not under a tab so I'm not sure what could cause it to disappear under WormTabStrip
Hey, your library is really interesting.
The only problem I found was the README.md
, which lacks information.
I created this iOS Open source Readme Template so you can take a look on how to better organize.
If you want, I can help you to do it.
What are your thoughts?
Hi,
Here we have option to select tap / swipe gesture to go to another tab.
My query is how call a tab selection programatically.
How can I implement this behavior in storyboard?
How to show table data? Because when I try the demo project and set up the data table, the data only show once and after that it disappear
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.