Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use only Circle Color Picker? #51

Open
Lyankar opened this issue Jun 18, 2020 · 1 comment
Open

How to use only Circle Color Picker? #51

Lyankar opened this issue Jun 18, 2020 · 1 comment

Comments

@Lyankar
Copy link

Lyankar commented Jun 18, 2020

Your Color Picker is very easy to use to compare others. But I want to use only circle colour picker, I have a UIView in that view I want to display this circle Color Picker in centre with out slider (beside the circle color picker). Is it possible? If yes please guide me.

In ColorPicker class I tried to hide addSubview(brightnessSlider) and addSubview(colorMapCursor) in private func setup() . But it is not working.

For example see my image, I want total view like this...
Here I wan to remove slider completely and adjust the color circle in to centre of the view (OR) at least hide slider and adjust the color circle in to centre of the screen.

And how to stop continuous reading values from ColorPicker? Which means I want to call this handleColorChanged function only one time that is last value. Because of I want to call one more function in to this.

Thank you.

Screenshot 2020-06-18 at 11 57 25 AM

@Que20
Copy link

Que20 commented Jul 22, 2021

You wont be able to edit the source code as you've probably imported this framework as a Pod. So just commenting the addSubview wont work.
I just submitted a pull request to hide the brightness slider, feel free to add a comment or a 👍 to it.

About stopping reading the value change, I guess you can either just set the isUserInteractionEnabled to false or juste remove the target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants