ASProgressPopUpView
ASProgressPopUpView copied to clipboard
Progress Bar Height
Thanks for the great control .. what is the easiest way to adjust the progress bar height ? I tried to skim through the code but couldn't find a suitable place .. in IB, it is hard-coded to 2 pixels but the value is disabled for editing .. Thanks
I just noticed this is inheriting UIProgressView :(
I tried below workaround to increase the height of the bar : http://stackoverflow.com/questions/18717895/progress-view-height-in-ios-7
It solves it by adding a height constraint to the control in IB .. the height worked but 2 issues appeared :
-
the bar doesn't animate the first half when you click start .. it immediately jumps there .. after the first progress tick has happened things go back to normal .. its just the first tick jumps immediately ..
-
There is a rounded corner in the start of the bar .. not like its end ..
See below pic for more details ..
Would appreciate your feedback .. Thanks
weird thing is that two issues mentioned above only happens to the first bar not the second ..
Hi @mzekrallah, I've just added a feature branch that doesn't subclass UIProgressView (this should fix the resizing issue). https://github.com/alskipp/ASProgressPopUpView/tree/uiview_subclass
It is work in progress, but please give it a try.
All the best, Al
I just checked it out .. awesome bro :+1: .. actually ditching UIProgressView would be for the ultimate good of the control .. since there are many things in UIProgressView that can't be altered .. also, in UIVIew approach there are endless possibilities to what you can attach to the bar and maybe upgrade t's entire behaviour from a progress view to something more of a timer which is actually my use case ..
By the way, I have ported this awesome control into Xamarin.iOS and I will be sharing that soon on github .. I'm sure lots of xamarin guys would love it ..
Thanks again
By the way @alskipp , would you eventually move towards the UIView subclass branch or stick with the UIProgressView ? I would like to know so that I know on which branch I should be doing my porting and extended functionality so i'm aligned with your directions on this great control ... Thanks
Hi @mzekrallah, It needs a bit more work to clean the code up, but I think it would make sense to eventually merge the UIView subclass branch into master.
great to hear :+1: thanks