wzbozon/DKProgressHUD — pull request #1 by Ruckt (2014-05-22 17:35:54+00:00)
Title: Added options to DKProgress HUD

Hi,
I used your Cocoa Pod in my app - https://itunes.apple.com/us/app/letter-sort/id875653244?ls=1&mt=8.

As you will see, I made a lot of changes it in my app and thought I would create those capabilities for future users.

I've added the following methods that someone can call to change the location, the background color, the size of each hexagon, and the size of the spinning circle, and the capability to have it more than one color or random colors.

Here are the new methods:

+ (void)setColors:(NSArray *)arrayOfColors;
+ (void)setBackgroundColor: (UIColor *)color;
+ (void)setHexagonSpinRadiusByMultipleOf:(float) multiple;
+ (void)setHexagonSizeByMultipleOf:(float) multiple;

+ (void)showInView:(UIView *)view withLocation:(CGPoint) center;
+ (void)showInView:(UIView *)view withFrameSizeMultipleOf:(float) multiplier;
+ (void)showInView:(UIView *)view withLocation:(CGPoint) center andWithFrameSizeMultipleOf:(float) multiplier;

I did have to work within your restraints and not mess it up for people using it and happy with the way it is - so that's why 3 possible initializers and creating multiples of something instead of providing a fixed size.

I hope you find these useful.

-Edan

Here are the methods