Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change the loadingActivityIndicator size #28

Open
josselin-oudry opened this issue Jul 6, 2018 · 1 comment
Open

Ability to change the loadingActivityIndicator size #28

josselin-oudry opened this issue Jul 6, 2018 · 1 comment

Comments

@josselin-oudry
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant