is there any solution to apply tint colour as a gradient in swift
my button has a simple white icon I want to change it to a gradient colour
is there any solution to apply tint colour as a gradient in swift
my button has a simple white icon I want to change it to a gradient colour
2
Answers
I have the same problem too
but for now
if you wanna change the text color it works.
like you convert image into pattern color by this code
/*
*/
I updated my answer according to Duncan C comment.
You can modify your image before setting it to button.
You can use it like that:
This code produces result like this: