I know that you can set a UIProgressView's progressImage property to some image that you want to represent the "progress", but it seems that the image is only sized to the width of the progress only, not the entire progress view width. In other words, I was hoping to achieve an effect where the progress appeared to "unveil" the background image by having the progress image sized to the entire progress view container and as the progress grew, more and more of the progress image showed. Is this possible?
Asked
Active
Viewed 130 times
1 Answers
0
Yes, you can easily write a custom view that displays progress by gradually removing a mask whose presence erases an image (for instance). Thus to whatever extent the mask is removed, to that extent the image is shown.

matt
- 515,959
- 87
- 875
- 1,141
-
Thanks, I will try your recommended solution. However, is there a way to just set the size of the UIProgressView's progress image to the constant size of the entire progress view? That way, no mask is needed. The progress of the progress bar will simply appear to show more and more of the progress image. – Eric33187 Feb 06 '21 at 17:21