joncardasis / ChromaColorPicker

:art: An intuitive iOS color picker built in Swift.
MIT License
569 stars 127 forks source link

Change handle of place #51

Open miguelc95 opened 4 years ago

miguelc95 commented 4 years ago

Trying to change a previously added handle of place programatically doesn't work, the slider brightness slider moves but the handle in the color picker doesn't. How can I change the handle to a certain color programmatically?

andhieka commented 4 years ago

After setting handle.color, you must call chromaColorPicker.setNeedsLayout() so that the handle is repositioned.