Hola Soy Edu Feliz Navidad Hola Soy Edu Feliz Navidad - 26 days ago 11
iOS Question

Rounded corner throughout the whole progress

I have a progress view and I see that if I change its corner radius I get rounded corners when the progress is 1.0 (full), however, I'd like to have rounded corner throughout the whole progress, for example, the image below shows a progress on half way, as you can see only the left end has rounded corners.

Progres (=========

I already set these properties on the

viewDidLoad
:

progressView.clipsToBounds = true
progressView.layer.cornerRadius = 3
progressView.layer.masksToBounds = true

Answer

I think you should search into the sublayer to find de blue one and apply the same treatment

Comments