I am working on a little project playing with colors in Xcode. Was wondering what the gradient locations do.
I noticed that gradientLayer.locations = [0.0, 1.0] will make it vertical, so i thought that gradientLayer.locations = [0.5, 0.5] would make it horizontal?
[0.5, 0.5] - results in 2 blocks of color stacked on top of each other, no gradient [0.0, 1.0] - results in gradient i am looking for, 2 vertical colors, with gradient
I know its kind of vague, but was looking for an explanation here. This doesnt make a lot of sense to me.
Thank,
Matt