I am trying to complete the following task and hit a road block. I am trying to mimick this image I created in an image editor, using a label in swift, and I can't find a suitable way to mimick the color schematics.
The idea is that I have a label with a blue text color. Behind it, I have a gradient of a blue series. I am trying to figure out a way that I can determine as soon as my label crosses over the edge of the background gradient, and change the color respectively.
For example, in image1, you can see how the text color changes as the gradient are diminished. Image2 is my work, and I can only get to have the first portion correctly masked. I tried masking the entire label to a background gradient, but that only allows for a single gradient and does not account for when the progress bar behind it terminates.
Image 1:
Image 2: