UIStroke not working with UIGradient?

So I have as UIGradient im using for the TextLabel below, and the UIGradient works but I want it to have a white outline so I added a UIStroke and set the color to white but it gives this weird transprancey effect and isn’t actually white

Is this a bug or something?

image

image

I’m not sure, but I think the gradient might be applying to the stroke as well.

Yeah i think thats what may be happening which i dont want

As @iamajust said, UIGradient is applying to the stroke as well, so you can just create a copy of the text and have one of it have only UIGradient and other have the UIStroke.
Another way is to have another UIGradient inside of the UIStroke which will override the gradient on text.

2 Likes

dude the second thing you said worked thank you so much!!!

image