APESuperHUD icon indicating copy to clipboard operation
APESuperHUD copied to clipboard

Ability to change the loadingActivityIndicator size

Open josselin-oudry opened this issue 6 years ago • 1 comments

Hi there,

Thanks for this great and flexible HUD. One thing I'd love to adjust though is the size of the loadingActivityIndicator. I'm not using the title or message so the loadingActivityIndicator looks a little small on its own. I've noticed you are using the default loadingActivityIndicator and I know it's not very customizable but there are some SO posts that show how to adjust the size of the native loadingActivityIndicator:

activityIndicator.transform = CGAffineTransform(scaleX: 2, y: 2) https://stackoverflow.com/questions/2638120/can-i-change-the-size-of-uiactivityindicator

It's an easy way of making the loadingActivityIndicator bigger even though the loadingActivityIndicator appears a little blurry.

Eventually that'd be better I guess to have this loadingActivityIndicator a custom animation like they do in https://github.com/SVProgressHUD/SVProgressHUD for example.

Cheers and have a great weekend!

josselin-oudry avatar Jul 06 '18 13:07 josselin-oudry

One workaround I've found was to set in APESuperHUD.swift loadingIndicatorView.activityIndicatorViewStyle = .whiteLarge right before loadingIndicatorView.color = HUDAppearance.loadingActivityIndicatorColor

This way I am able to display a big red loadingIndicatorView for example. So ideally HUDAppearance should handle a new property HUDAppearance.activityIndicatorViewStyle that can be set to the same enum values as UIActivityIndicatorView.style.

josselin-oudry avatar May 29 '19 07:05 josselin-oudry