How would I use 2 gradients at once?

I am trying to make a colour picker similar to this one:
image
I want to create the main part by using to UIGradient instances, but only one of them shows. How could I fix this?

You could have another frame over it, and have that with a UIGradient.

The best way to do this is to have your color gradient on one layer, then put a black frame on top it with a transparency gradient

1 Like