alskipp/ASValueTrackingSlider

String instead of Number like in ASProgressPopUpView

Closed this issue · 3 comments

Hello,

you have an option in your other project "ASProgressPopUpView" to write a string instead of a formatted number value. Is it possible to add this option to the "ASValueTrackingSlider" too?

Example from "ASProgressPopUpView":

  • (NSString *)progressView:(ASProgressPopUpView *)progressView stringForProgress:(float)progress
    {
    NSString *s;
    if (progress < 0.2) {
    s = @"Just starting";
    } else if (progress > 0.4 && progress < 0.6) {
    s = @"About halfway";
    } else if (progress > 0.75 && progress < 1.0) {
    s = @"Nearly there";
    } else if (progress >= 1.0) {
    s = @"Complete";
    }
    return s;
    }

Thanks!
Kenan.

Hi @appicus,
Thanks for your interest in the project. Yes, this is something I definitely need to add, so I'll make sure it's in the next update. As the implementation has already been worked out in ASProgressPopUpView, it shouldn't be too challenging. There might be a bit of refactoring required, but I'll try and get a release out within the next week.

Cheers,
Al

Thanks for your suggestion. The functionality has now been merged into master

Cheers,
Al

Thanks again, this is a very usable control and looks very nice!

Cheers,
Kenan