Code Monkey home page Code Monkey logo

colormatchtabs's People

Contributors

basthomas avatar darkkrye avatar den-zv avatar minseks avatar mrcompoteee avatar naeemshaikh90 avatar pravdaevgen avatar readmecritic avatar rnkyr avatar serejahh avatar vodolazkyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colormatchtabs's Issues

Add own popover Button.

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. :)

Enable scroll in tabs

Hi all,

Have you tried to add ˜20 tabs, only 6 tabs are displayed..
Do you know how to enable scroll ?

Thanks,

I need your help

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.

Desactivate swipe between tabs

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 !

UIViewtable

Help ! how to colormatch call storyboard firts

Do things when user switch to another tab

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 :)

Can not run the project in simulator

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.

Segues from ColorMatchTabsViewController produces Exception

Report a bug

What did you do?

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

What did you expect to happen?

Segue to another view controller

What happened instead?

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'`

Your Environment

  • Version of the component: 2.0.1
  • Swift version: 3
  • iOS version: 10
  • Device: All
  • Xcode version: 8.2.1

Project that demonstrates the bug

Sample project reproduces the bug by adding either a button to the nav bar with a segue, or initiating one

Swift 3.0 crashed with project

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

Can't select a cell

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

I have side menu in my app and through side menu i want to go particular tab though which function i implement that feature

Report

The more information you provide, the faster we can help you.

⚠️ Select what you want - a feature request or report a bug. Please remove the section you aren't interested in.

A feature request

What do you want to add?

Please describe what you want to add to the component.

How should it look like?

Please add images.

Report a bug

What did you do?

Please replace this with what you did.

What did you expect to happen?

Please replace this with what you expected to happen.

What happened instead?

Please replace this with what happened instead.

Your Environment

  • Version of the component: insert here
  • Swift version: insert here
  • iOS version: insert here
  • Device: insert here
  • Xcode version: insert here
  • If you use Cocoapods: run pod env | pbcopy and insert here
  • If you use Carthage: run carthage version | pbcopy and insert here

Project that demonstrates the bug

Please add a link to a project we can download that reproduces the bug.

Cannot change navigationBar background Color

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?

Objective-C Headers

This is a neat project. Is there a way to use this in an objective-c project?

How To?

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

Switch tabs programmatically instead of tapping

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!

UIActivityIndicator over UIScrollView

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.

visualize the ColorMatchTabs at the bottom.

I would like to know if you can place the component at the bottom of a viewcontroller, because I think it would be even better (and an important alternative). If yes, how? Or, you must change the component?

example_colormatchtabs

Storyboard interface as a content

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 fix scroll bars and layout?

thing

How would i remove the scroll bars and lock the vertical scroll?
Also how would i put the "Reviews..etc." bar into the UINavigationBar?

ios

Report

The more information you provide, the faster we can help you.

⚠️ Select what you want - a feature request or report a bug. Please remove the section you aren't interested in.

A feature request

What do you want to add?

Please describe what you want to add to the component.

How should it look like?

Please add images.

Report a bug

What did you do?

Please replace this with what you did.

What did you expect to happen?

Please replace this with what you expected to happen.

What happened instead?

Please replace this with what happened instead.

Your Environment

  • Version of the component: insert here
  • Swift version: insert here
  • iOS version: insert here
  • Device: insert here
  • Xcode version: insert here
  • If you use Cocoapods: run pod env | pbcopy and insert here
  • If you use Carthage: run carthage version | pbcopy and insert here

Project that demonstrates the bug

Please add a link to a project we can download that reproduces the bug.

Make popover button optional

Currently the button is always shown. Even if no viewcontroller was set as a popovercontroller. Would be fine to deactivate the button if needed...

swift 3.0

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

Cant download via cocapods

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)

After pushing a Controller of type ColorMatchTabs inside a Navigation Controller, pushing a new Controller crashes the app

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.

@IBInspectable Error

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? {
}

bildschirmfoto 2018-01-25 um 22 37 39

Example Project Bug?

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:

image

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.

Content not visible

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

TableView Statics Cells

What do you want to add?

I need to add a Static cells to TableView and loading data emptry, is for profile client & other
tks for help

Your Environment

  • Swift version: 2.3
  • iOS version: 9.0
  • Device: iphone6 plus
  • Xcode version: 8

Perform action based on which button is tapped ?

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!

willTransitionToTraitCollection is not forwarded to TabsViewController

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

Is it possible to hide tabbar when app goes to next ViewController.

Report

The more information you provide, the faster we can help you.

⚠️ Select what you want - a feature request or report a bug. Please remove the section you aren't interested in.

A feature request

What do you want to add?

Please describe what you want to add to the component.

How should it look like?

Please add images.

Report a bug

What did you do?

Please replace this with what you did.

What did you expect to happen?

Please replace this with what you expected to happen.

What happened instead?

Please replace this with what happened instead.

Your Environment

  • Version of the component: insert here
  • Swift version: insert here
  • iOS version: insert here
  • Device: insert here
  • Xcode version: insert here
  • If you use Cocoapods: run pod env | pbcopy and insert here
  • If you use Carthage: run carthage version | pbcopy and insert here

Project that demonstrates the bug

Please add a link to a project we can download that reproduces the bug.

More cosmetic options.

A feature request

More cosmetic options

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.

Issue with visible content / and contentSizes after orientation change

PreCondition:

  • Example project
  • Enable landscape support

Action:

  • Switch to 'Places' in portrait mode
  • Rotate device to landscape

Result:

  • Half content view shows "Places" content and the other half (left side) showing content from first tab 'Products'

Expected:

  • correct content size after orientation change

Note:

  • ScrollMenu.swift L.123ff -> layoutContent()
  • I'll have a look at it tomorrow

Tabs are getting covered by the NavigationBar

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.

fatal error: Index out of range

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.