Transparency on UIGradient?

Hello. I am trying to make an UIGradient that instead of two colors, goes from transparent to non-transparent. I tried searching for a solution but couldn’t find anything.

You can use transparency in a different editor, and I recommend you save all ‘time’ values to a txt file so you can set the transparency faster.

Here’s a post on how to use transparency with UIGradients:


Thank you! There’s also one more problem. I managed to do the transparency gradient but it makes both text and background transparent even despite the fact I used a frame for background and a textlabel (with transparent background) for the text. How do I fix this?

EDIT: Nevermind, it was the background overlapping the text. Thanks for the help!