ASProgressPopUpView
ASProgressPopUpView copied to clipboard
Tooltip below the progress bar
Would set the tooltip to be displayed below the progress bar?
Hi @thiagoalvsantos I'll take a look into this when I get time. It shouldn't be too difficult to implement. By the way I noticed that you forked the repro - the latest code is on the 'popup_size' branch which I plan to merge into master in the next few days. If you plan to make changes it might be best to base them on that branch. Al
+1 to bellow progress bar
+1
:+1: what a great progress bar control ! .. thank you .. would be great if you can consider adding the option to make the popup appear below the bar instead of above it .. Thanks
@alskipp I appreciate your component and your time but I know you may not be able to fulfill every request .. could you please give me a hint about the functions or places that would have to be changed to get the popup to appear below the progress bar ? my initial guess is the 'SetFrame' method but when I played with that, it changes the origin of the popup when it animates but it still appears above the progress bar .. so that's why I'm asking for any hints .. appreciate your response .. Thanks
Hi @mzekrallah, If you take a look at this hacky version I posted for ASValueTrackingSlider, it should give you an idea of what things need to be adapted:
https://github.com/alskipp/ASValueTrackingSlider/issues/4
It doesn't attempt to create a reasonable API to control the positioning, it just hard codes the layout.
One thing that's easy to miss is setting the layer anchor point inside ASPopUpView
. I think the value would need to be as follows:
self.layer.anchorPoint = CGPointMake(0.5, 0);
Thanks bro .. unfortunately, I couldn't get the hang of it since there are many differences in the code base for the new branch "uiview_subclass" and the ASValueTrackingSlider changes I saw in the above link .. I will try again but it would be great if this is use case is built in the progress bar since it has a much better use case the ASValueTracking as I read your notes above (the user finger would block the popup view and it won't be readable) however, the use case for the progress bar is much better since the progress shows without user intervention.. Thanks again ..