MBProgressHUD icon indicating copy to clipboard operation
MBProgressHUD copied to clipboard

Combined mode

Open glasseytech opened this issue 13 years ago • 5 comments

Possible feature: I've seen a few of these impls around now, and they would be very useful in this lib (which is great, btw). We would need an annular indeterminate mode, and pie determinate mode, at the same time.

The use case is that sometimes you have 5 (for instance) tasks to perform, and each task can take a while. You don't necessarily have access to or want to provide more granular progress, so you could use "MBProgressModeMixed". The annular indeterminate would be animating constantly, which tells the user there is activity, even if there is seemingly no progress being made. Then the pie is free to update when it needs to.

glasseytech avatar Jul 08 '13 19:07 glasseytech

What there a particular look/animation in mind?

coryallegory avatar Jul 08 '13 19:07 coryallegory

The look and animations are already there, if not fully, then at least in part.

We already have an annular determinate mode - it just needs an indeterminate counterpart.

The regular determinate mode look/animation (MBProgressHUDModeDeterminate) is fine for the pie chart part of the progress.

All that remains is to layer the annular indeterminate on top of the determinate, to achieve this mixed mode.

glasseytech avatar Jul 08 '13 20:07 glasseytech

mixedprogress

An example using my limited animation skills.

glasseytech avatar Jul 08 '13 20:07 glasseytech

The HUD has a customView property that can be used for specific cases like this. You can achieve this look pretty easily by subclassing MBRoundProgress view and assigning an instance of your subclass as the customView. As there is no way the library could cover all possible progress and design scenarios, I would rather stick with just the simple progress views that are currently bundled and refer to the customView property for further customizations.

matej avatar Jul 09 '13 06:07 matej

It's not really a specific case. Obviously you can't cover all possible progress and design scenarios, but currently there is no way to (easily) indicate any activity at all if a task is long - it just looks like your app has frozen. Look even at Apple's impl, and you'll see that a progress bar "shimmers" at all times, for this reason specifically. I know there's workarounds, but this omission seemed pretty glaring. Maybe there are better solutions than this one, but the library should at least deal with it easily, in some way. Thanks.

glasseytech avatar Jul 09 '13 17:07 glasseytech