gizmosachin / ColorSlider

🎨 Snapchat-style color picker in Swift
MIT License
288 stars 53 forks source link

QUESTION: Switching starter color (black to white instead of white to black) #23

Closed roimulia closed 6 years ago

roimulia commented 6 years ago

Hey! Thank you for this awesome library.

One small question. If I need to change the starter color (from white to black, to black to right, in my case), how would you recommend doing that?

gizmosachin commented 6 years ago

Hi @roimulia! Sorry for the late response. Unfortunately this isn't supported at the moment.

I'd recommend forking the project and modifying GradientView.swift if changing the starter color is essential.

Alternatively, you could try using a CGAffineTransformScale with a x or y equal to -1 (depending on the orientation) to flip the ColorSlider on its axis.