yalantis / colormatchtabs Goto Github PK
View Code? Open in Web Editor NEWThis is a Review posting app that let user find interesting places near them
Home Page: https://yalantis.com/
License: MIT License
This is a Review posting app that let user find interesting places near them
Home Page: https://yalantis.com/
License: MIT License
Is there a way to have a callback when the switch changes view controllers? Either by a tap, swipe or programmatically changing viewControllers?
Is it possible to add my own floating button, which triggers a segue to a custom view controller, if not it would be create when you could implement it. :)
This should labeled as a question. Can I move the tabbar to bottom?
Say i want to integrate 3d touch. How would I be able to coordinate the quick actions into changing the view?
Hi all,
Have you tried to add ˜20 tabs, only 6 tabs are displayed..
Do you know how to enable scroll ?
Thanks,
Title explains all
The problem i have is that i can't open this project in Xcode 7. Now what you would tell me is to open the project in Xcode 8 as it was intended for but i can't update my software on my computer to Xcode 8 until i upgrade the entire software on my mac to sierra. If i do that then my computer will run slow. I don't have much money and can't afford to buy more memory or a new computer. Is there a Xcode 7 version of this project. By the way love the things you guys do.
Hi everyone,
On certain conditions I would like to deactivate the swipe gesture that allows to move between the tabs (to avoid to interfere with a slider I put in one of the tabs).
Do you guys know how to deactivate the swipe gesture recognizer ? Or even better, how to handle both gesture at the same time, for example by using the gesture speed (slow: move slider, fast: change tab)
Thanks !
Hi. I want to use this library with Hero. I am opening a popup viewcontroller on didSelectRowAt
. But Tab bar is appear after popup viewcontroller dismiss. You can see this from below
Help ! how to colormatch call storyboard firts
Hi !
I'm trying to do some extra things when the user switch to another tab.
I have a burger menu and I would like to switch burger menu icon color for the current tab color.
I have tried to override
public func scrollMenu(_ scrollMenu: ScrollMenu, didSelectedItemAt index: Int)
But I got an error from Xcode Overriding a non-open instance method outside of its defining module
So could it be possible to do it ?
Instead of that, inside of :
func updateNavigationBar(forSelectedIndex index: Int)
I had to add this code :
if let rightItems = self.navigationItem.rightBarButtonItems {
for item in rightItems {
item.tintColor = color
}
}
if let leftItems = self.navigationItem.leftBarButtonItems {
for item in leftItems {
item.tintColor = color
}
}
But I had to update one of your file, and I would like to do it through a delegate or a function of you. Because I will have to do it each time you release a new version.
Thank you for your answer :)
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
any eta?
called self.performSegue(withIdentifier: "addItem", sender: self)
in the protocol method func popoverViewController(_ popoverViewController: PopoverViewController, didSelectItemAt index: Int)
PopoverViewControllerDelegate function.
Or initiating a segue by tapping a button on the navigation bar of a ColorMatchTabsViewController
Segue to another view controller
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'`
Sample project reproduces the bug by adding either a button to the nav bar with a segue, or initiating one
I know you converted your project to swift 3.0 but the project wont build with the workspace, xcode 8 keeps asking me to convert the project to swift 3.0. I know you converted the project but can you please respond and help me
I need to change the plus sign in the circle button in bottom viewcontroller with a label (a number).
There is a way to do this?
Thank you,
Stefano
When I add ColorMatchTabs in TabberController. Tabbar item not paging when scroll
I tried to override didSelectRowAtIndexPath() method, but it does not work although I tried to debug it. It never called. So please so me how to detect selection a cell. Thank you very much
The more information you provide, the faster we can help you.
Please describe what you want to add to the component.
Please add images.
Please replace this with what you did.
Please replace this with what you expected to happen.
Please replace this with what happened instead.
pod env | pbcopy
and insert herecarthage version | pbcopy
and insert herePlease add a link to a project we can download that reproduces the bug.
I'm trying to change the navigationBar backgroundColor but always let white.
This is my code
self.navigationController?.navigationBar.backgroundColor = UIColor.blue
self.navigationController?.navigationBar.barTintColor = UIColor.blue
self.navigationController?.navigationBar.tintColor = UIColor.purple
self.navigationController?.navigationBar.isTranslucent = false
tintColor works but backgroundColor and barTintColor don't.
¿Any suggestion?
This is a neat project. Is there a way to use this in an objective-c project?
how i hide circle button in bottom viewcontroller?
I want hide circle button in some viewcontroller in MatchTabs ( don't show all viewcontroller)
Thanks you
Hi,
I would really be thankful if someone could help me figured it out.
Trying to implement in my project, but I fail.
Really appreciate if someone have a simple tutorial.
Thanks
I would like to switch tabs programmatically.
When the user finished each step, I can switch to next tabs subview. Also, I need to disable some tabs' tapping event when the user tapped tabs which they should not arrive. How can I do that in this project?
Thanks for this gorgeous project!
Can I add badge number to tab, how to do
I have the UITableViewController and I'm trying add a UIActivityIndicator to waiting until it download the information to show in the table but the UIScrollView where is contained the TableViewController make that it can't be possible stay over it, then the you can scrolling vertical while the activity indicator is active. are there a way to solve this?
Thanks.
Hi,
I'm practicing with the example and I have a doubt if is it possible to create a interface with the storyboard and show it as content? In case that I want to create my own content and not just uitableviewController. I tried to get the reference from the storyboard but or crash or the content is empty.
Thanks.
How to check which Tab Bar item is active and when selected one?
Thanks in advance!
The more information you provide, the faster we can help you.
Please describe what you want to add to the component.
Please add images.
Please replace this with what you did.
Please replace this with what you expected to happen.
Please replace this with what happened instead.
pod env | pbcopy
and insert herecarthage version | pbcopy
and insert herePlease add a link to a project we can download that reproduces the bug.
Currently the button is always shown. Even if no viewcontroller was set as a popovercontroller. Would be fine to deactivate the button if needed...
Hello, the swift 3.0 version of colormatchtabs is not working. In Xcode 8 its saying that you need to convert the code to swift 3.0 in edit, convert. Can you please fix it
Hi, I am getting this error
[!] Unable to find a specification for ColorMatchTabs (~> 1.0)
I tried pod 'ColorMatchTabs', '~> 1.0'
and I tried pod ColorMatchTabs (~> 1.0)
A Navigation Controller (A) will contain 2 instance of ColorMatchTabs Controller. Each ColorMatchTabs Controller has a unique Navigation Controller (B and C)
On first pushViewController of B to A, the result is fine. On the second however (C to A), it's crashing and giving an error of
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(0x18338adb0 0x1829eff80 0x18326e708 0x1886d611c 0x188690f30 0x188691130 0x188690f30 0x188690f30 0x188691130 0x188690f30 0x188690f30 0x188691130 0x188880b44 0x1885a00d8 0x18859fb1c 0x18859fa84 0x1884dc1e4 0x185e6e98c 0x185e695c8 0x185e69488 0x185e68ab8 0x185e68818 0x1884deff4 0x18334109c 0x183340b30 0x18333e830 0x183268c50 0x184b50088 0x18854a088 0x1000d9414 0x182e068b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
I'll update this thread if I found something useful.
Thank you for this great component!
EDIT: I changed the title from 'More than one instance of ColorMatchTabs produces an error' after I made conclusive tests.
I ran pod install for the Example project and tried to open the workspace and I get 48 errors. Tried a couple of different things and get the errors every time. Is there a problem with CocoaPods and this project?
I keep getting this Error:
Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C
on the following line of code in ColorMatchTabsViewControllerDataSource:
@IBInspectable open weak var dataSource: ColorMatchTabsViewControllerDataSource? {
}
Hello, thank you for this masterpiece!
I just downloaded made a pod install, and getting this errors on runtime.
My device is 6s iOS 9.3.3. After I click the + button it works normal but if I select something the screen becomes like this:
This is happening 100% and the rest of the app is unaffected if I press + button again to close.
But if I click + button one more time then the screen is only white and the + button (meaning the icons don't float around anymore)
Is this a bug on your side?
Thank you.
2016-08-23 14:19:22.987 Example[3760:1600404] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x13d62b0f0 V:|-(687)-[UIView:0x13d5a5520] (Names: '|':UIView:0x13d623520 )>",
"<NSLayoutConstraint:0x13d62b240 UIView:0x13d5a5520.bottom == UIView:0x13d623520.bottom - 213.104>",
"<NSLayoutConstraint:0x13d62cd10 'UIView-Encapsulated-Layout-Height' V:[UIView:0x13d623520(667)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x13d62b240 UIView:0x13d5a5520.bottom == UIView:0x13d623520.bottom - 213.104>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
I added my own view controller in the content view controller provider, run the app.
App runs successfully but my uicollectionview methods (delegate and datasource) are not called
I need to add a Static cells to TableView and loading data emptry, is for profile client & other
tks for help
Awesome project btw!
How do i inform the controller which presented the popover view and circle menu which item on the circle menu was tapped?
I know that I can override the "didSelectItemAt" method from with the popover view to get the index of the item that is tapped?
but how do am i to notify the ColorMatchTabsViewController which tab to navigate to once an item on the circle menu is tapped?
extension ExamplePopoverViewController {
override func circleMenu(circleMenu: CircleMenu, didSelectItemAt index: Int) {
if(index==0){
//Checklists
}else if(index==1){
//Trips
}else if(index==2){
//Friends
}
super.circleMenu(circleMenu, didSelectItemAt: index)
}
}
I see that didSelectItemAt simply calls hidePopover()
extension PopoverViewController: CircleMenuDelegate {
public func circleMenuWillDisplayItems(circleMenu: CircleMenu) {
moveIconsToCircle()
showContentView()
}
public func circleMenuWillHideItems(circleMenu: CircleMenu) {
moveIconsToDefaultPositions()
hideContentMenu()
}
public func circleMenu(circleMenu: CircleMenu, didSelectItemAt index: Int) {
hidePopover()
}
}
And hide popover dismisses the viewController
private extension PopoverViewController {
@objc func hidePopover(sender: AnyObject? = nil) {
dismissViewControllerAnimated(true, completion: nil)
}
}
Any suggestions would be greatly appreciated.
Thanks in advance!
is there any way to arrange the tab bar on bottom instead of top?
Currently
override func willTransitionToTraitCollection(newCollection: UITraitCollection, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
super.willTransitionToTraitCollection(newCollection, withTransitionCoordinator: coordinator)
}
gets never called in a viewController of a tab bar item.
Same applies to
override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
}
The more information you provide, the faster we can help you.
Please describe what you want to add to the component.
Please add images.
Please replace this with what you did.
Please replace this with what you expected to happen.
Please replace this with what happened instead.
pod env | pbcopy
and insert herecarthage version | pbcopy
and insert herePlease add a link to a project we can download that reproduces the bug.
I'm wondering if you could unlock more cosmetic options. At least some methods to change the
<ExtendedNavigationBar>
in<MenuView> navigationBar.backgroundColor = .white
background color and such things. There is so many protection layers around these features and is very limited. I don't know if this is intended or not.
Thank you.
PreCondition:
Action:
Result:
Expected:
Note:
I have used Storyboard -< UINavigationController -> TabViewController (ColorsTabsViewController)
When i run it the navigationBar and Color tabs frame is same Hence it gets covered by navigation bar.
I have followed the example, and running the code results in the above error in the
func moveHighlighterView(toItemAt toIndex: Int) {
guard let countItems = dataSource?.numberOfItems(inTabSwitcher: self) where countItems > toIndex else {
return
}
let toLabel = labels[toIndex]
let toIcon = buttons[toIndex]
// offset for first item
let point = convertPoint(toIcon.frame.origin, toView: self)
let offsetForFirstItem: CGFloat = toIndex == 0 ? -HighlighterViewOffScreenOffset : 0
highlighterView.frame.origin.x = point.x + offsetForFirstItem
// offset for last item
let offsetForLastItem: CGFloat = toIndex == countItems - 1 ? HighlighterViewOffScreenOffset : 0
highlighterView.frame.size.width = toLabel.bounds.width + (toLabel.frame.origin.x - toIcon.frame.origin.x) + 10 - offsetForFirstItem + offsetForLastItem
highlighterView.backgroundColor = dataSource!.tabSwitcher(self, tintColorAt: toIndex)
}
section of the ColorMatchTabs Source Code
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.