Marmelador
Marmelador

Reputation: 1017

UIProgressView not reflecting first 0.05 of progress

It seems to me that when setting a UIProgressViews progress to a value between >0.0 and 0.05 always shows a progress of 0.05 (no matter the value).

I understand that this makes sense from a UX perspective, but does UIProgressView have a property to turn it off?

Upvotes: 0

Views: 516

Answers (1)

bajocode
bajocode

Reputation: 360

Judging from the PlayGround below and from @Rohan Bhale's comment, UIProgressView scales it's progress layer according to the view's frame size. The smaller the width, the less difference you will see at small .progress ranges.

At 200 points width (as depicted below), there are in fact noticeable differences in your 0 .. 0.05 range.

Progress

Upvotes: 0

Related Questions