MBProgressHUD icon indicating copy to clipboard operation
MBProgressHUD copied to clipboard

activityIndicatorColor shouldn't be deprecated

Open spybart opened this issue 9 years ago • 4 comments

I just want to express my opinion that by deprecating this property and forcing user to customize UIActivityIndicator color through UIAppearance, you are taking away flexibility from the user.

Setting color through UIAppearance basically means you are limited to the same color throughout the entire app, which may not be desirable. It is nice to be able to set the color for a specific indicator, based on the colors of the page it is being shown in.

spybart avatar Aug 08 '16 19:08 spybart

Try setting content color property on the hud

jjxtra avatar Aug 16 '16 17:08 jjxtra

@jjxtra That is not the same thing. There are definitely certain colors for the hud or background where it would be favorable to customize the activity indicator color as well.

spybart avatar Aug 20 '16 20:08 spybart

@spybart First,you should set UIActivityIndicatorView's indicatorColor like this

[UIActivityIndicatorView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]].color = [UIColor whiteColor];

Then,start use the MBProgressHUD

 MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];

It's work in target Class, not all Class

CaiChenghan avatar Nov 27 '18 02:11 CaiChenghan

@spybart First,you should set UIActivityIndicatorView's indicatorColor like this

[UIActivityIndicatorView appearanceWhenContainedInInstancesOfClasses:@[[MBProgressHUD class]]].color = [UIColor whiteColor];

Then,start use the MBProgressHUD

 MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];

It's work in target Class, not all Class

That still isn't a solution. It could be desirable to have multiple indicator colors inside the same class.

spybart avatar Nov 27 '18 06:11 spybart