amratab / FlexibleSteppedProgressBar

Flexible Stepped Progress Bar for IOS
Other
577 stars 113 forks source link

Fill all States #1

Closed tarek903 closed 7 years ago

tarek903 commented 7 years ago

hi Amrata,

i was wondering is there a way to fill all states till the last one (currently fill all before current Index)

thanks in advance

amratab commented 7 years ago

You can mark the last point as completedTillIndex to fill it. progressBar.numberOfPoints = 5 progressBar.completedTillIndex = 4

tarek903 commented 7 years ago

@amratab still doesn't fill the last state

progressBarWithoutLastState.numberOfPoints = 4 progressBarWithoutLastState.completedTillIndex = 3

screen shot 2017-01-16 at 8 07 26 pm

amratab commented 7 years ago

Can you briefly explain what is your exact requirement. Do you want all the circles to be filled and look same and not indicate the last state differently? If thats the case, give same values for progressRadius and radius and define lastStateOuterCircleLineWidth as 0. progressBar.radius = 25 progressBar.progressRadius = 25 progressBar.lastStateOuterCircleLineWidth = 0

But if you do need to show the last state differently later, then I don't think there is a way to show them all filled in the beginning without showing last one separately.

tarek903 commented 7 years ago

ok i got it, thanks alot really grateful for your answering time ,hope you all the best